Commit f2461a0
authored
Use routing key as DSM topic for RabbitMQ default-exchange publishes (#11805)
Use routing key as DSM topic for RabbitMQ default-exchange publishes
When a producer publishes to the default exchange (exchange == ""), the
routing key is the destination queue name. The DSM checkpoint previously
recorded an empty exchange and no topic, so the producer had no destination
and showed up disconnected in the Data Streams Monitoring map. Record the
routing key as the topic in that case (matching the consumer checkpoint and
the JS/.NET tracers). Named-exchange publishes are unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fix propagation-disabled check for default-exchange RabbitMQ publishes
The disabled-destination check still looked up propagation state by
exchange name, which is always empty for default-exchange publishes.
Use the routing key (queue name) instead, matching the DSM topic tag
and the consumer-side check, so disabling a queue by name also
suppresses producer-side propagation for default-exchange publishes.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Merge branch 'master' into eric.firth/dsm-rabbitmq-default-exchange-topic
Merge branch 'master' into eric.firth/dsm-rabbitmq-default-exchange-topic
Merge branch 'master' into eric.firth/dsm-rabbitmq-default-exchange-topic
Merge branch 'master' into eric.firth/dsm-rabbitmq-default-exchange-topic
Merge branch 'master' into eric.firth/dsm-rabbitmq-default-exchange-topic
Co-authored-by: eric.firth <eric.firth@datadoghq.com>1 parent 9a4067f commit f2461a0
2 files changed
Lines changed: 57 additions & 6 deletions
File tree
- dd-java-agent/instrumentation/rabbitmq-amqp-2.7/src
- main/java/datadog/trace/instrumentation/rabbitmq/amqp
- test/groovy
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
210 | 213 | | |
211 | | - | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
225 | 232 | | |
226 | 233 | | |
227 | 234 | | |
| |||
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | | - | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
496 | | - | |
| 497 | + | |
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
| |||
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
692 | 736 | | |
693 | 737 | | |
694 | 738 | | |
| |||
0 commit comments