You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really I don't know if is a error or really that is solved and we can put traceid like labels but sure documentation is not well explained and a refactor of this could be beneficial.
Explanation of my stack:
I have a full open-telemetry stack
When I tried to send my logs that works but I want to put traceid & spanid in my loki.labels for work in a raw format and put the labels I want to search without fight with json format.
That is my configuration otel-configuration (I remove all aditional configuration for free space):
That error happen in all formats (json, raw, logfmt) when you tried to put traceid like a label that don't let you also loki don't see this like a label:
The text was updated successfully, but these errors were encountered:
Loki labels are indexed and should be kept to low-cardinality attributes. Trace ID and Span ID aren't a good fit for this, which is why they are placed in the body instead. This means that you can still query for them after parsing the body (with json or logfmt parsers), but you'd need to reduce the amount of data being queries by first using a low-cardinality value from a label, like service name.
Component(s)
exporter/loki
Describe the issue you're reporting
Previous PR related:
Really I don't know if is a error or really that is solved and we can put traceid like labels but sure documentation is not well explained and a refactor of this could be beneficial.
Explanation of my stack:
I have a full open-telemetry stack
When I tried to send my logs that works but I want to put traceid & spanid in my loki.labels for work in a raw format and put the labels I want to search without fight with json format.
That is my configuration otel-configuration (I remove all aditional configuration for free space):
That error happen in all formats (json, raw, logfmt) when you tried to put traceid like a label that don't let you also loki don't see this like a label:
The text was updated successfully, but these errors were encountered: