Commit 073ad18
authored
Tag consumer spans with the pathway hash on every data streams checkpoint (#11808)
Tag consumer spans with the pathway hash on every data streams checkpoint
The pathway.hash span tag was only set on the produce/inject path
(DataStreamsPropagator.inject). Consumers that checkpoint without injecting
(e.g. RabbitMQ) had no pathway.hash, unlike the JS and Python tracers which tag
the span on every checkpoint. Set it centrally in
DefaultDataStreamsMonitoring.setCheckpoint so all consume-side integrations get
it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Remove explanatory comment on pathway hash tagging
Per review on #11808; the rationale lives in the PR description.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Address review on #11808
- cache pathwayContext.getHash() in a local instead of calling it twice
- use a negative hash in the test so it actually exercises Long.toUnsignedString
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Expect pathway.hash on the inferred-proxy server span when DSM is enabled
Now that DefaultDataStreamsMonitoring.setCheckpoint tags the span on every
checkpoint, the inferred-proxy (API Gateway) HTTP server span gets a
pathway.hash like any other DSM-enabled server span. The shared HttpServerTest
already asserts this conditionally; SpringBootBasedTest's hand-rolled
inferred-proxy assertions were missing it. Mirror the same guard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge branch 'master' into eric.firth/dsm-consumer-pathway-hash
Co-authored-by: eric.firth <eric.firth@datadoghq.com>1 parent 41fffe8 commit 073ad18
3 files changed
Lines changed: 76 additions & 0 deletions
File tree
- dd-java-agent/instrumentation/spring/spring-webmvc/spring-webmvc-3.1/src/test/groovy/test/boot
- dd-trace-core/src
- main/java/datadog/trace/core/datastreams
- test/java/datadog/trace/core/datastreams
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
573 | 576 | | |
574 | 577 | | |
575 | 578 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
| |||
Lines changed: 68 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
1559 | 1566 | | |
1560 | 1567 | | |
1561 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
1562 | 1630 | | |
1563 | 1631 | | |
1564 | 1632 | | |
| |||
0 commit comments