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

Avoid returning 500 for TRACE_TOO_LARGE #4160

Merged
merged 10 commits into from
Oct 18, 2024

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented Oct 4, 2024

What this PR does:

Here we make an adjustment to the return value at the querier and query-frontend for the case where a trace is larger than the max configured size. Previously this was reported as a 500 status code and has now been changed to a 422. This will allow these conditions to be excluded from SLO failures, which is more appropriate since this is based on a configured max trace size.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@zalegrala zalegrala force-pushed the frontendTraceTooLargeErr branch from 671627d to 0b86b08 Compare October 16, 2024 20:45
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

oh! changelog

@zalegrala zalegrala changed the title Avoid returning 500 when for TRACE_TOO_LARGE Avoid returning 500 for TRACE_TOO_LARGE Oct 17, 2024
@zalegrala zalegrala force-pushed the frontendTraceTooLargeErr branch from 76f7059 to 94a6eea Compare October 17, 2024 20:48
@joe-elliott
Copy link
Member

nice one 👍

Copy link
Contributor

@javiermolinar javiermolinar left a comment

Choose a reason for hiding this comment

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

LGTM!

modules/frontend/combiner/trace_by_id.go Outdated Show resolved Hide resolved
@zalegrala zalegrala merged commit 67be243 into grafana:main Oct 18, 2024
16 checks passed
@zalegrala zalegrala deleted the frontendTraceTooLargeErr branch October 18, 2024 14:22
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.

3 participants