Repository navigation
Does OTEL Logs support the notion of the structured_metadata of Loki? #1786
Closed
trajano
announced in
Community Discussions
Replies: 1 comment 4 replies
|
Are you using Collector with lokiexporter? If so then best to ask this question in Collector discussions. |
4 replies
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 know at present that it doesn't have it at least based on my experiments. Even with promtail it is a matter of extracting the data and placing them somewhere else. Just wondering if it is in the roadmap?
The use of structured_metadata is experimental in Loki and it is a to work around a technical implementation where it is inefficient to label high cardinality items such as trace_id, user IDs, access_tokens but we still want to be able to view them separately from the log message.
Secondly if we had something like this we can have a common structure like
{ "message": "This is the message", "log.original": "message=\"This is the message\" info=\"ignored 123\" user_id=456 trace_id=asdfasdfasdf", "metadata": { "otel.traceid": "asdfasdfasdf" "user_id": 456 }, "attributes": { "stream": "stderr", "service.name": "my service" } }All reactions