diff --git a/reactor-finder/src/main/java/com/newrelic/agent/instrumentation/pointcuts/frameworks/reactor/ReactorClassTransformer.java b/reactor-finder/src/main/java/com/newrelic/agent/instrumentation/pointcuts/frameworks/reactor/ReactorClassTransformer.java index 9fe5d7f..3b4b621 100644 --- a/reactor-finder/src/main/java/com/newrelic/agent/instrumentation/pointcuts/frameworks/reactor/ReactorClassTransformer.java +++ b/reactor-finder/src/main/java/com/newrelic/agent/instrumentation/pointcuts/frameworks/reactor/ReactorClassTransformer.java @@ -4,6 +4,7 @@ import java.security.ProtectionDomain; import java.util.HashMap; import java.util.Map; +import java.util.logging.Level; import com.newrelic.agent.deps.org.objectweb.asm.commons.Method; import com.newrelic.agent.instrumentation.InstrumentationType; @@ -16,6 +17,7 @@ import com.newrelic.agent.instrumentation.context.InstrumentationContextManager; import com.newrelic.agent.instrumentation.methodmatchers.MethodMatcher; import com.newrelic.agent.instrumentation.tracing.TraceDetailsBuilder; +import com.newrelic.api.agent.NewRelic; public class ReactorClassTransformer implements ContextClassTransformer { @@ -52,6 +54,7 @@ public byte[] transform(ClassLoader loader, String className, Class classBein method.getDescriptor(), match.getMethodAnnotations(method))) { context.putTraceAnnotation(method, TraceDetailsBuilder.newBuilder().setTracerFactoryName(ReactorPreMain.TRACER_FACTORY_NAME) .setInstrumentationSourceName("New Relic Labs").setInstrumentationType(InstrumentationType.TraceAnnotation).setDispatcher(false).build()); + NewRelic.getAgent().getLogger().log(Level.FINE, "Instrumented Reactor returning class {0} and method {1}", className, method); } }