How to automatically inject trace details to application logs written in Nodejs / Go #67
-
In python, there is an option to inject trace details (traceid,spanid) automatically to application logs using environment variable (export OTEL_PYTHON_LOG_CORRELATION=true). Is there something similar in Nodejs and Go. I couldn't find any autoinstrumentaion for tracing in Go (We can manually instrument using context, by creating span). So I don't expect answer from Go language, but probably, Node might have a solution |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Transferred to JS repository for @open-telemetry/javascript-approvers attention |
Beta Was this translation helpful? Give feedback.
-
Depends what logging framework you're using. Some of them have autoinstrumentation packages that do exactly what you're saying. There is no such feature for direct console.log |
Beta Was this translation helpful? Give feedback.
Depends what logging framework you're using. Some of them have autoinstrumentation packages that do exactly what you're saying.
There is no such feature for direct console.log