Skip to content

How can I automatically add attributes to logs such as tracing::info!()? #1497

Closed Answered by cijothomas
Romira915 asked this question in Q&A
Discussion options

You must be logged in to vote

Logs to Trace correlation should be automatically done, if you are using the opentelemetry-tracing-appender. There is no need of explicitly pass the traceid, instead it'll be automatically correlated, as long as you have instrumented using OTel Tracing API for your traces.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cijothomas
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