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 3 replies

Comment options

You must be logged in to vote
3 replies
@Romira915
Comment options

@Romira915
Comment options

@cijothomas
Comment options

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