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

[Frontend] Two fixes for gRPC query range streaming #4576

Merged
merged 10 commits into from
Jan 17, 2025

Conversation

joe-elliott
Copy link
Member

What this PR does:
Correctly defaults step and copies exemplar values for gRPC streaming. The previous attempt to fix default step was not well tested and has been reverted.

Also added benchmarks and tests for attachExemplars. I had intended to replace the binary search with a forward cursor on the exemplar slice, but the perf difference was so little I decided to leave the current implementation. Leaving the bench in case we decide to optimize in the future.

Which issue(s) this PR fixes:
Fixes #4575

Checklist

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

Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott merged commit 9acc16d into grafana:main Jan 17, 2025
15 checks passed
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.

NaN values for exemplars when performing query range queries through gRPC
2 participants