Skip to content

Is it possible to include parent_span_id in auto-instrumented logs? #13876

Answered by laurit
gejunqiang asked this question in Q&A
Discussion options

You must be logged in to vote

I doubt that we'll be adding this any time soon, but if you so wish you can probably get parent_span_id added to mdc yourself. If you are not using the agent then casting to ReadableSpan should succeed. If you use agent then in the agent extension casting to ReadableSpan should also succeed. If you are using agent and wish to do it in application code then you could use reflection to call

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@gejunqiang
Comment options

@laurit
Comment options

@gejunqiang
Comment options

@laurit
Comment options

Answer selected by gejunqiang
@gejunqiang
Comment options

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