Skip to content

admin: honor the ?limit= parameter on /metrics/track - #561

Merged
afrind merged 1 commit into
mainfrom
fix/track-metrics-limit-param
Aug 13, 2026
Merged

admin: honor the ?limit= parameter on /metrics/track#561
afrind merged 1 commit into
mainfrom
fix/track-metrics-limit-param

Conversation

@afrind

@afrind afrind commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The parsed value was validated and discarded, so every scrape used admin.track_metrics_endpoint_default_limit and the 400 body told callers to raise a limit that raising did not change.

Also drop the doc's claim that an over-max limit is clamped; it is a 400.

Fixes #560


This change is Reviewable

The parsed value was validated and discarded, so every scrape used
admin.track_metrics_endpoint_default_limit and the 400 body told callers
to raise a limit that raising did not change.

Also drop the doc's claim that an over-max limit is clamped; it is a 400.

Fixes #560
@afrind
afrind force-pushed the fix/track-metrics-limit-param branch from b71fbfa to f196b45 Compare August 12, 2026 19:03
@gmarzot
gmarzot self-requested a review August 13, 2026 00:29

@gmarzot gmarzot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@gmarzot reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gmarzot).

@afrind
afrind merged commit 3bb483e into main Aug 13, 2026
46 of 52 checks passed
@afrind
afrind deleted the fix/track-metrics-limit-param branch August 13, 2026 01:40
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.

/metrics/track ignores the limit query parameter

2 participants