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

Add the ability to Tail loki logs #9933

Merged
merged 2 commits into from Apr 8, 2024
Merged

Conversation

jrockway
Copy link
Member

@jrockway jrockway commented Apr 5, 2024

This adds Tail to our client library. Tail is designed to run forever (cancel it with the context), and will survive Loki restarts and such.

Websocket reads are blocking by default with the golang.org/x/net/websocket library; we work around this by setting explicit deadlines and handling the case where nothing arrives in that time interval.

@jrockway jrockway requested a review from robert-uhl April 5, 2024 23:43
Copy link
Contributor

@robert-uhl robert-uhl left a comment

Choose a reason for hiding this comment

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

I assume that you’ll have another PR for the API side of this, and then another for the pachctl side?

@jrockway jrockway merged commit 4e02a37 into master Apr 8, 2024
19 of 20 checks passed
@jrockway
Copy link
Member Author

jrockway commented Apr 8, 2024

Yeah. As it stands now GetLogs is just a placeholder in master. Waiting for some of these open PRs to get merged.

@jrockway jrockway deleted the jonathan/core-2130-tail-logs branch April 8, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants