Skip to content

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

Merged
joe-elliott merged 10 commits intografana:mainfrom
joe-elliott:fix-exemplars
Jan 17, 2025
Merged

[Frontend] Two fixes for gRPC query range streaming#4576
joe-elliott merged 10 commits intografana:mainfrom
joe-elliott:fix-exemplars

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

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 <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott joe-elliott merged commit 9acc16d into grafana:main Jan 17, 2025
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