-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot put traceid & spanid like loki labes #33202
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
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: