How to Enable/Inject Trace ID and Span ID for all the Application Logs through logrus #2988
Unanswered
arjunkanti
asked this question in
Q&A
Replies: 2 comments 2 replies
-
No. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is there any plans to enable automatic injection to logs in future releases..?? Without Passing request context to each log entry. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to enable Trace ID and Span ID for every application log. I am using opentelemtry APIs to inject and logrus labrary for logging. Below link has example code where i am able to enable trace/span entries to all logs but the trace and span id values are always 0's. Log entry Context doesn't have the http request context trace/span IDs.
Is there any way to get it automatically without injecting context to all the log entries..??
More Details : https://stackoverflow.com/questions/72812236/golang-logrus-enable-opentelemetry-trace-id-and-span-id-in-all-application-logs
Beta Was this translation helpful? Give feedback.
All reactions