Skip to content

Return Bad Request when exceeding limit#3340

Merged
joe-elliott merged 2 commits intografana:mainfrom
joe-elliott:fail-on-too-large-limit
Jan 26, 2024
Merged

Return Bad Request when exceeding limit#3340
joe-elliott merged 2 commits intografana:mainfrom
joe-elliott:fail-on-too-large-limit

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott commented Jan 26, 2024

What this PR does:
Currently if the configured max limit is exceeded Tempo will just cut off results at the max limit. Instead we should return a 400 to clearly notify the user their request is invalid.

Checklist

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

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Copy Markdown
Contributor

@zalegrala zalegrala left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me.

@joe-elliott joe-elliott merged commit cc08db3 into grafana:main Jan 26, 2024
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