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

chore: [k218] fix(detected_fields): return parsed labels when parsers are passed #14050

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

grafanabot
Copy link
Collaborator

Backport aa1ac99 from #14047


What this PR does / why we need it:

The detected_fields API accepts a full "logQL" query to be passed. This includes parsers. If parsers were passed, the SelectLogs statement would parse labels into the streamLabels property. That would then cause the detected_fields logic to run the "detection" logic again and append _extracted to all parsed labels.

This PR changes the behavior: if parsed labels are returned by SelectLogs, the API does not try to be smart and to parse again, but just return structuredmetadata and parsed labels. The parsers returned in that case will be the parsers used in the query.

…14047)

Co-authored-by: Galen Kistler <[email protected]>
Co-authored-by: Trevor Whitney <[email protected]>
(cherry picked from commit aa1ac99)
@grafanabot grafanabot requested a review from a team as a code owner September 4, 2024 18:51
@grafanabot grafanabot added backport product-approved size/L type/bug Somehing is not working as expected labels Sep 4, 2024
@trevorwhitney trevorwhitney merged commit e504c76 into k218 Sep 4, 2024
64 checks passed
@trevorwhitney trevorwhitney deleted the backport-14047-to-k218 branch September 4, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport product-approved size/L type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants