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

Support categorized labels in Tailing #11079

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

salvacorts
Copy link
Contributor

@salvacorts salvacorts commented Oct 30, 2023

What this PR does / why we need it:

This is a follow-up PR for #10419 adding support for tailing.

I tested it on a dev cell and works fine.
image

Note: With these changes, the JSON marshal unmarshal functions for the tail are no longer used (example) so I think we can remove them. Also, the new Tail response is no longer used, so we can also make it an alias to the legacy one. Let's do it on a follow-up PR to avoid making this one bigger.

@salvacorts salvacorts changed the title Salvacorts/categorized labels tailing Support categorized labels in Tailing Oct 30, 2023
@salvacorts salvacorts marked this pull request as ready for review October 30, 2023 13:43
@salvacorts salvacorts requested a review from a team as a code owner October 30, 2023 13:43
Copy link
Contributor

@vlad-diachenko vlad-diachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! thanks @salvacorts

@salvacorts salvacorts merged commit 9be3c08 into main Oct 31, 2023
3 checks passed
@salvacorts salvacorts deleted the salvacorts/categorized-labels-tailing branch October 31, 2023 13:01
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
**What this PR does / why we need it**:

This is a follow-up PR for grafana#10419
adding support for tailing.

I tested it on a dev cell and works fine.
<img width="1296" alt="image"
src="https://github.com/grafana/loki/assets/8354290/6177e0ca-02ce-48cd-a17f-0739dc3caa0a">


**Note**: With these changes, the JSON marshal unmarshal functions for
the tail are no longer used ([example][1]) so I think we can remove
them. Also, the new Tail response is no longer used, so we can also make
it an alias to the _legacy_ one. Let's do it on a follow-up PR to avoid
making this one bigger.

[1]:
https://github.com/grafana/loki/blob/52a3f16039dd5ff655fc3681257d99794f620ec4/pkg/loghttp/entry.go#L210-L238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants