Skip to content

Does the traceparent header actually reaches the database servers (mongodb, mysql, postgres)? #4412

Answered by Flarna
tomargovind asked this question in Q&A
Discussion options

You must be logged in to vote

In general not.
Reason is that the protocols used to communicate with the database have no room to add something like HTTP headers.
For SQL there is SQL commenter which adds them as SQL comment but not sure if it is used by any existing instrumentation.
There are also databases which are accessed via HTTP where HTTP headers are added as usual.

including the W3C tracecontext makes only sense if the database itself picks it up and continues the trace. Not sure if there are any databases which actually create spans.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tomargovind
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants