How to emit the scopeInfo of LogRecord into separate attribute? #13089
Unanswered
sivaponting
asked this question in
Q&A
Replies: 1 comment
-
Do I understand correctly that you wish to get the java class/method/line that called the log method? If so both logback(https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/logback/logback-appender-1.0/javaagent/README.md) and log4j2(https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-appender-2.17/javaagent/README.md) have experimental flags for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Open telemetry log emitter emits the log as a message using otlp. But it fails to emit the scopeInfo which has the information about the java package name and class name.
May I know how to capture the scopeInfo as separate attribute?
Beta Was this translation helpful? Give feedback.
All reactions