diff --git a/dd-java-agent/instrumentation/javax-mail/src/main/java/datadog/trace/instrumentation/javax/mail/JavaxMailInstrumentation.java b/dd-java-agent/instrumentation/javax-mail/src/main/java/datadog/trace/instrumentation/javax/mail/JavaxMailInstrumentation.java index 3dae05ac9fc..67990e99297 100644 --- a/dd-java-agent/instrumentation/javax-mail/src/main/java/datadog/trace/instrumentation/javax/mail/JavaxMailInstrumentation.java +++ b/dd-java-agent/instrumentation/javax-mail/src/main/java/datadog/trace/instrumentation/javax/mail/JavaxMailInstrumentation.java @@ -27,7 +27,7 @@ public JavaxMailInstrumentation(String instrumentationName, String... additional @Override public void methodAdvice(MethodTransformer transformer) { transformer.applyAdvice( - named("javaxMailInstrumentation"), + named("send"), JavaxMailInstrumentation.class.getName() + "$MailInjectionAdvice"); }