Skip to content

Fix divide by 0 bug in exemplar sharding calculations - #3936

Merged
mdisibio merged 2 commits into
grafana:mainfrom
mdisibio:fix-exemplars-div-0
Aug 5, 2024
Merged

Fix divide by 0 bug in exemplar sharding calculations#3936
mdisibio merged 2 commits into
grafana:mainfrom
mdisibio:fix-exemplars-div-0

Conversation

@mdisibio

@mdisibio mdisibio commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

What this PR does:
Fixes a divide-by-0 bug in the recently merged exemplar logic. For very small blocks or containing few traces, there could be a divide by 0 bug in the query-frontend when calculating the number of exemplars for a sub-request.

Which issue(s) this PR fixes:
Fixes n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
@mdisibio
mdisibio merged commit 7dc8134 into grafana:main Aug 5, 2024
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
* Fix divide by 0 bug in exemplar sharding calculations

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants