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