Keep operation name the same
This commit is contained in:
parent
8b822ff26d
commit
6fdcfc783a
|
@ -197,7 +197,7 @@ class ApacheHttpClientTest extends AgentTestRunner {
|
||||||
trace.span(index) {
|
trace.span(index) {
|
||||||
childOf parent
|
childOf parent
|
||||||
serviceName "unnamed-java-app"
|
serviceName "unnamed-java-app"
|
||||||
operationName "apache.http.request"
|
operationName "http.request"
|
||||||
resourceName "GET /$route"
|
resourceName "GET /$route"
|
||||||
errored exception != null
|
errored exception != null
|
||||||
tags {
|
tags {
|
||||||
|
|
|
@ -91,7 +91,7 @@ public class ApacheHttpClientInstrumentation extends Instrumenter.Default {
|
||||||
final Tracer tracer = GlobalTracer.get();
|
final Tracer tracer = GlobalTracer.get();
|
||||||
final Scope scope =
|
final Scope scope =
|
||||||
tracer
|
tracer
|
||||||
.buildSpan("apache.http.request")
|
.buildSpan("http.request")
|
||||||
.withTag(Tags.COMPONENT.getKey(), "apache-httpclient")
|
.withTag(Tags.COMPONENT.getKey(), "apache-httpclient")
|
||||||
.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT)
|
.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT)
|
||||||
.withTag(DDTags.SPAN_TYPE, DDSpanTypes.HTTP_CLIENT)
|
.withTag(DDTags.SPAN_TYPE, DDSpanTypes.HTTP_CLIENT)
|
||||||
|
|
|
@ -117,7 +117,7 @@ class ApacheHttpClientTest extends AgentTestRunner {
|
||||||
trace.span(index) {
|
trace.span(index) {
|
||||||
childOf parent
|
childOf parent
|
||||||
serviceName "unnamed-java-app"
|
serviceName "unnamed-java-app"
|
||||||
operationName "apache.http.request"
|
operationName "http.request"
|
||||||
resourceName "GET /$route"
|
resourceName "GET /$route"
|
||||||
errored exception != null
|
errored exception != null
|
||||||
tags {
|
tags {
|
||||||
|
|
|
@ -77,7 +77,7 @@ class AWSClientTest extends AgentTestRunner {
|
||||||
assertTraces(TEST_WRITER, 2) {
|
assertTraces(TEST_WRITER, 2) {
|
||||||
trace(0, 1) {
|
trace(0, 1) {
|
||||||
span(0) {
|
span(0) {
|
||||||
operationName "apache.http.request"
|
operationName "http.request"
|
||||||
resourceName "$method /$url"
|
resourceName "$method /$url"
|
||||||
errored false
|
errored false
|
||||||
parent() // FIXME: This should be a child of the aws.http call.
|
parent() // FIXME: This should be a child of the aws.http call.
|
||||||
|
|
|
@ -106,7 +106,7 @@ class AWSClientTest extends AgentTestRunner {
|
||||||
assertTraces(TEST_WRITER, 2) {
|
assertTraces(TEST_WRITER, 2) {
|
||||||
trace(0, 1) {
|
trace(0, 1) {
|
||||||
span(0) {
|
span(0) {
|
||||||
operationName "apache.http.request"
|
operationName "http.request"
|
||||||
resourceName "$method /$url"
|
resourceName "$method /$url"
|
||||||
errored false
|
errored false
|
||||||
parent() // FIXME: This should be a child of the aws.http call.
|
parent() // FIXME: This should be a child of the aws.http call.
|
||||||
|
|
Loading…
Reference in New Issue