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

agent: rework open-metrics API handler to better surface errors #2015

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

jgraettinger
Copy link
Member

@jgraettinger jgraettinger commented Mar 18, 2025

Hoist the stats decoding / encoding work out of the returned coroutine, so that we can surface an encountered stats decoding error as an internal server error response. Currently these don't get logged at all.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

Hoist the stats decoding / encoding work out of the returned coroutine,
so that we can surface an encountered stats decoding error as an
internal server error response. Currently these don't get logged at all.
@jgraettinger jgraettinger requested a review from psFried March 18, 2025 17:52
Copy link
Member

@psFried psFried left a comment

Choose a reason for hiding this comment

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

LGTM

@jgraettinger jgraettinger merged commit 95a700c into master Mar 19, 2025
3 checks passed
@jgraettinger jgraettinger deleted the johnny/metrics-error branch March 19, 2025 22:52
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.

2 participants