-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
lokiexporter
: support serialization of all body types into JSON
#6639
Conversation
@gillg, are you interested in taking a look at this as well? |
lokiexporter
: support serialization of all body types into JSON
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.
Very happy to see this improvement ! I was completly lost on how to return a consistent string type and create fake data for tests when I tried it !
Many thanks for this very fast improvement. I think now lokiexporter can fully handle any OTEL log entry !
The only anoying thing is how to extract a body attribute (in case of map body, like generated by syslogreceiver) to a loki label, but it's more a missing logprocessor to be able moving attributes from body to otel attributes or resources I think.
…ts (#6639) Signed-off-by: Bogdan Drutu <[email protected]>
#5846 added support for encoding log entries as json but only worked if the Body was a string.
This expands that all supported types.