-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to export Logback and Log4j 2 markers #2529
Conversation
...ter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/LogDataMapper.java
Outdated
Show resolved
Hide resolved
@@ -167,6 +170,10 @@ private static void setExtraAttributes( | |||
telemetryBuilder.addProperty("LineNumber", String.valueOf(value)); | |||
return; | |||
} | |||
if (OTEL_LOG_MARKER.getKey().equals(key)) { | |||
telemetryBuilder.addProperty("Marker", String.valueOf(value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would Marker
be a good property name?
@@ -10,5 +10,8 @@ | |||
"logging": { | |||
"level": "warn" | |||
} | |||
}, | |||
"preview": { | |||
"captureLog4jMarkerAttribute": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature only works with Log4j 2 (not for Log4j 1). Would captureLog4j2MarkerAttribute
be a better property name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rabase on top of #2596 before merging |
…ureLog4jMarkerAttribute => captureLog4jMarker
No description provided.