Commit ba3c51f
committed
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.1 parent 244c586 commit ba3c51f
2 files changed
Lines changed: 13 additions & 7 deletions
File tree
- dd-java-agent
- agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator
- instrumentation/spring/spring-webmvc/spring-webmvc-3.1/src/test/groovy/test/boot
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
| |||
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
208 | 218 | | |
209 | 219 | | |
210 | 220 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | 546 | | |
548 | | - | |
549 | | - | |
| 547 | + | |
550 | 548 | | |
551 | 549 | | |
552 | 550 | | |
| |||
570 | 568 | | |
571 | 569 | | |
572 | 570 | | |
573 | | - | |
574 | 571 | | |
575 | | - | |
| 572 | + | |
576 | 573 | | |
577 | 574 | | |
578 | 575 | | |
| |||
585 | 582 | | |
586 | 583 | | |
587 | 584 | | |
588 | | - | |
589 | 585 | | |
590 | | - | |
| 586 | + | |
591 | 587 | | |
592 | 588 | | |
593 | 589 | | |
| |||
0 commit comments