Rename operation jax-rs.endpoint to jax-rs.request
This commit is contained in:
parent
d877039fa7
commit
0b71c6bbe5
|
@ -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");
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue