Skip to content

feat: send log limit exceeded in response, not error #12078

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

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Feb 9, 2024

When we exceed the db-imposed limit of logs, we need to communicate that back to the agent. In v1 we did it with a 4xx-level HTTP status, but with dRPC, the errors are delivered as strings, which feels fragile to me for something we want to gracefully handle.

So, this PR adds the log limit exceeded as a field on the response message, and fixes the API handler to set it as appropriate instead of an error.

@spikecurtis spikecurtis force-pushed the spike/log-limit-exceeded branch from a3ee6af to 04d7016 Compare February 9, 2024 12:02
@spikecurtis spikecurtis force-pushed the spike/log-limit-exceeded branch from 04d7016 to ed748d4 Compare February 9, 2024 12:05
@spikecurtis spikecurtis merged commit 92b2e26 into main Feb 9, 2024
@spikecurtis spikecurtis deleted the spike/log-limit-exceeded branch February 9, 2024 12:17
Copy link
Contributor Author

Merge activity

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants