You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add http.status_code, error, and http.useragent to inferred proxy spans (#10749)
WIP
WIP
WIP
Fix service-entry spans inheriting gateway domain name as service name under inferred proxy spans
When an inferred proxy span is the parent, the service-entry span was inheriting
its service name (the gateway domain name, e.g. system-tests-api-gateway.com)
instead of using the application's configured service name. Reset the service name
to the configured DD_SERVICE value in HttpServerDecorator.startSpan() when an
inferred proxy parent is detected.
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
Copy file name to clipboardExpand all lines: dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/HttpServerDecorator.java
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/spring/spring-webmvc/spring-webmvc-3.1/src/test/groovy/test/boot/SpringBootBasedTest.groovy
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -523,6 +523,8 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
523
523
"$Tags.HTTP_ROUTE""/success"
524
524
"stage""test"
525
525
"_dd.inferred_span"1
526
+
"$Tags.HTTP_STATUS"SUCCESS.status
527
+
"$Tags.HTTP_USER_AGENT"String
526
528
// Standard tags that are automatically added
527
529
"_dd.agent_psr"Number
528
530
"_dd.base_service"String
@@ -541,10 +543,8 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext>
541
543
}
542
544
}
543
545
// Server span should be a child of the inferred proxy span
544
-
// When there's an inferred proxy span parent, the server span inherits the parent's service name
545
546
span {
546
-
// Service name is inherited from the inferred proxy span parent
0 commit comments