Skip to content
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

[v11.0.x] Loki: Fix log context when no label types are present #87600

Merged
merged 1 commit into from
May 10, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 1c8a77a from #87587


What is this feature?

LogContext uses the labelTypes data frame field to determine if a label should be used in a streamselector or as a label filter expression. When the labelTypes field is not present, we incorrectly assumed all labels are "non indexed" and we would use all labels as label filter expressions.

This PR fixes the behavior. If the label type can not be determined, the label will be used as an indexed label and thus in the stream selector.

@svennergr svennergr enabled auto-merge (squash) May 10, 2024 10:09
@svennergr svennergr merged commit 67aa2aa into v11.0.x May 10, 2024
22 checks passed
@svennergr svennergr deleted the backport-87587-to-v11.0.x branch May 10, 2024 10:11
@fabrizio-grafana fabrizio-grafana modified the milestones: 11.0.x, 11.0.0 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants