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

This commit is contained in:
Luca Abbati 2019-08-30 17:57:03 +02:00
parent d877039fa7
commit 0b71c6bbe5
No known key found for this signature in database
GPG Key ID: 74DBB952D9BA17F2
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ import net.bytebuddy.matcher.ElementMatcher;
@AutoService(Instrumenter.class) @AutoService(Instrumenter.class)
public final class JaxRsAnnotationsInstrumentation extends Instrumenter.Default { 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() { public JaxRsAnnotationsInstrumentation() {
super("jax-rs", "jaxrs", "jax-rs-annotations"); super("jax-rs", "jaxrs", "jax-rs-annotations");

View File

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