Keep operation name the same

This commit is contained in:
Tyler Benson 2018-10-01 14:28:14 -04:00
parent 8b822ff26d
commit 6fdcfc783a
5 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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)

View File

@ -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 {

View File

@ -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.

View File

@ -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.