-
Notifications
You must be signed in to change notification settings - Fork 886
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
Implement reading of simple key-value Logstash JSON Marker attributes #12513
Conversation
087cdd9
to
6f0d31f
Compare
Ah, Muzzle, I was afraid of that. I have no idea on what is wrong. |
About CI failing, you can refer to https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CONTRIBUTING.md#troubleshooting-pr-build-failures |
6f0d31f
to
4129983
Compare
Thanks, hopefully fixed Muzzle. |
Marking as draft:
I will finish this later next week. |
click the "Ready for review" button when you are ready for it to be reviewed, thanks! |
4129983
to
fa99c59
Compare
fa99c59
to
c4b7dd5
Compare
Supported are MapEntriesAppendingMarker and SingleFieldAppendingMarker (i.e. ObjectAppendingMarker and RawJsonAppendingMarker) only. The attribute value is sent either as boolean, long, double or String or typed-array with respective values. The generic types (Object[], Collection) is converted to String array with values converted with String.valueOf() method. Typically the Logstash markers are added to logs via Markers.append(), Markers.appendEntries(), Markers.appendArray() and Markers.appendRaw() methods. Signed-off-by: Oldřich Jedlička <[email protected]>
c4b7dd5
to
fea5c4d
Compare
Updated, rebased, ready for review. It looks like the build errors are unrelated (Lettuce). |
...java/io/opentelemetry/instrumentation/logback/appender/v1_0/internal/LoggingEventMapper.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/logback/appender/v1_0/internal/LoggingEventMapper.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/logback/appender/v1_0/internal/LoggingEventMapper.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/logback/appender/v1_0/internal/LoggingEventMapper.java
Outdated
Show resolved
Hide resolved
...java/io/opentelemetry/instrumentation/logback/appender/v1_0/internal/LoggingEventMapper.java
Show resolved
Hide resolved
Thanks for working on this, I didn't have much time recently to implement the suggestions from the review. 👍 |
…open-telemetry#12513) Signed-off-by: Oldřich Jedlička <[email protected]> Co-authored-by: Lauri Tulmin <[email protected]>
…open-telemetry#12513) Signed-off-by: Oldřich Jedlička <[email protected]> Co-authored-by: Lauri Tulmin <[email protected]>
Supported are
MapEntriesAppendingMarker
andSingleFieldAppendingMarker
(i.e.ObjectAppendingMarker
andRawJsonAppendingMarker
) only. The attribute value is always a string retrieved by a call totoString()
method.Typically the Logstash markers are added to logs via
Markers.append()
andMarkers.appendEntries()
methods.Closes #12573