Skip to content

Add '-Ddd.message.broker.split-by-destination=true' flag - #3313

Merged
mcculls merged 4 commits into
masterfrom
mcculls/messageBrokerSplitByDestination
Jan 19, 2022
Merged

mcculls merged 4 commits into
masterfrom
mcculls/messageBrokerSplitByDestination

Conversation

@mcculls

@mcculls mcculls commented Jan 13, 2022 •

Copy link
Copy Markdown
Contributor

Setting this flag makes messaging integrations use a different broker service name according to the destination.

The new system property is

-Ddd.message.broker.split-by-destination=true

You can also set this environment variable:

DD_MESSAGE_BROKER_SPLIT_BY_DESTINATION=true

Also note that this only applies when legacy tracing is turned off for the messaging integration since it relies on the new "time-in-queue" trace structure, ie:

-Ddd.jms.legacy.tracing.enabled=false

@mcculls mcculls added inst: others All other instrumentations inst: rabbitmq RabbitMQ instrumentation inst: jms JMS instrumentation labels Jan 13, 2022
@mcculls
mcculls requested a review from a team as a code owner January 13, 2022 17:22
@mcculls
mcculls force-pushed the mcculls/messageBrokerSplitByDestination branch 4 times, most recently from 30f6e8d to 3b07918 Compare January 13, 2022 20:10
…ferent broker service name according to the destination
@mcculls
mcculls force-pushed the mcculls/messageBrokerSplitByDestination branch from 3b07918 to 0075b7b Compare January 13, 2022 21:51
@mcculls
mcculls merged commit 3005600 into master Jan 19, 2022
@mcculls
mcculls deleted the mcculls/messageBrokerSplitByDestination branch January 19, 2022 09:38
@github-actions github-actions Bot added this to the 0.94.0 milestone Jan 19, 2022
@JeanFred

JeanFred commented Feb 5, 2024 •

Copy link
Copy Markdown

Hi @mcculls − first off sorry for asking here, please redirect me if need be.

As I was looking into improving our tracing through SQS/JMS, I found this PR and tried it

I initially added only -Ddd.message.broker.split-by-destination=true and observed no difference.

I then noticed the warning about this depending on -Ddd.jms.legacy.tracing.enabled=false (#3054) ; I first tried enabling only -Ddd.jms.legacy.tracing.enabled=false and did observe changes regarding jms in my service map.

Then I tried having -Ddd.message.broker.split-by-destination=true on top of -Ddd.jms.legacy.tracing.enabled=false, but did not notice any further difference. The thing is − should I expect so? Are the message.broker.split-by-destination changes supposed to make any further difference to me as I use SQS ; or only if using RabbitMQ or Kafka (as I tend to understand by browsing the changeset)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: jms JMS instrumentation inst: others All other instrumentations inst: rabbitmq RabbitMQ instrumentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants