how can I change the operation_id and id of the request and traces in Java logging in application insights #9546
Unanswered
rajatsmjain
asked this question in
Q&A
Replies: 0 comments
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.
-
I have a gradle based Java application. I am using this package: com.microsoft.azure:applicationinsights-core:3.4.16 in that. Now I have enable the distribution tracing in Java Azure function using https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=java.
Issue:
I am facing the issue to change the operation_id and id for the traces, custom events & request it generates in the application insight. I am using java.util.logging logger in Java and I want that logger should log all the logs with custom operation_id and I also want to configure the request with custom operation_id. How to do that? I tried multiple ways but it didn't work.
Beta Was this translation helpful? Give feedback.
All reactions