Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBM: Add option to SQL comment propagation #5125

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andreas
Copy link

@andreas andreas commented Jan 17, 2025

What does this PR do?

This PR is a port of DataDog/dd-trace-rb#3809 to dd-trace-js.

It adds an option to append the DBM trace propagation comment instead, of prepending it. This allow users using database monitor tools to see the SQL query itself first, instead of the Datadog trace propagation comment first.

Motivation

External tools, such as AWS RDS Performance Insights, are very hard to use with DBM comments prepended.

Further, it's currently impossible to use pg_hint_plan when dd-trace-js prefixes queries with a comment.

Plugin Checklist

Additional Notes

@andreas andreas requested review from a team as code owners January 17, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant