Rename operation jax-rs.endpoint to jax-rs.request
MODIFY
dd-java-agent/instrumentation/jax-rs-annotations/src/main/java/datadog/trace/instrumentation/jaxrs/JaxRsAnnotationsInstrumentation.java
dd-java-agent/instrumentation/jax-rs-annotations/src/main/java/datadog/trace/instrumentation/jaxrs/JaxRsAnnotationsInstrumentation.java
@@ -22,7 +22,7 @@ import net.bytebuddy.matcher.ElementMatcher;
@AutoService(Instrumenter.class)
public final class JaxRsAnnotationsInstrumentation extends Instrumenter.Default {
- private static final String JAX_ENDPOINT_OPERATION_NAME = "jax-rs.endpoint";
+ private static final String JAX_ENDPOINT_OPERATION_NAME = "jax-rs.request";
public JaxRsAnnotationsInstrumentation() {
super("jax-rs", "jaxrs", "jax-rs-annotations");

MODIFY
dd-java-agent/instrumentation/jax-rs-annotations/src/test/groovy/JaxRsAnnotationsInstrumentationTest.groovy
dd-java-agent/instrumentation/jax-rs-annotations/src/test/groovy/JaxRsAnnotationsInstrumentationTest.groovy
@@ -26,7 +26,7 @@ class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
- operationName "jax-rs.endpoint"
+ operationName "jax-rs.request"
resourceName "POST /a"
spanType "web"
tags {
@@ -58,7 +58,7 @@ class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
}
}
span(1) {
- operationName "jax-rs.endpoint"
+ operationName "jax-rs.request"
resourceName name
spanType "web"
childOf span(0)

Rename operation jax-rs.endpoint to jax-rs.request