Skip to content

Commit 2ad98b1

Browse files
committed
test
1 parent 4ed183c commit 2ad98b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dd-java-agent/instrumentation/jax-rs-annotations-2/src/main/java/datadog/trace/instrumentation/jaxrs2/JaxRsAnnotationsInstrumentation.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@
2727
import net.bytebuddy.asm.Advice;
2828
import net.bytebuddy.description.type.TypeDescription;
2929
import net.bytebuddy.matcher.ElementMatcher;
30+
import org.slf4j.Logger;
31+
import org.slf4j.LoggerFactory;
3032

3133
@AutoService(Instrumenter.class)
3234
public final class JaxRsAnnotationsInstrumentation extends Instrumenter.Tracing
3335
implements Instrumenter.ForTypeHierarchy {
3436

3537
private static final String JAX_ENDPOINT_OPERATION_NAME = "jax-rs.request";
38+
private static final Logger log = LoggerFactory.getLogger(JaxRsAnnotationsInstrumentation.class);
3639

3740
public JaxRsAnnotationsInstrumentation() {
3841
super("jax-rs", "jaxrs", "jax-rs-annotations");
@@ -96,6 +99,8 @@ public static AgentScope nameSpan(
9699
@Advice.Origin final Method method,
97100
@Advice.AllArguments final Object[] args,
98101
@Advice.Local("asyncResponse") AsyncResponse asyncResponse) {
102+
log.info("Matt Li Test:");
103+
log.info(String.valueOf(target.getClass()));
99104
ContextStore<AsyncResponse, AgentSpan> contextStore = null;
100105
for (final Object arg : args) {
101106
if (arg instanceof AsyncResponse) {

0 commit comments

Comments
 (0)