Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilpipre committed Jun 25, 2024
1 parent 5730e14 commit be59fe1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {

Expand Down Expand Up @@ -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);
}

}
Expand Down

0 comments on commit be59fe1

Please sign in to comment.