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

Bugfix: Default step for gRPC streaming query range queries #4546

Merged
merged 6 commits into from
Jan 13, 2025

Conversation

joe-elliott
Copy link
Member

What this PR does:
Currently the http query range endpoint will choose a default step if none is provided, but the gRPC streaming endpoint will simply return an error: code = Unknown desc = step required.

This PR uses the same logic in the gRPC streaming as http to choose a default step if the passed value is 0.

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]>
@joe-elliott joe-elliott changed the title Bugfix: Default step grpc query range Bugfix: Default step for gRPC streaming query range queries Jan 13, 2025
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott merged commit 424274a into grafana:main Jan 13, 2025
16 checks passed
joe-elliott added a commit to joe-elliott/tempo that referenced this pull request Jan 17, 2025
joe-elliott added a commit that referenced this pull request Jan 17, 2025
* Revert "Bugfix: Default step for gRPC streaming query range queries (#4546)"

This reverts commit 424274a.

* default step if not set

Signed-off-by: Joe Elliott <[email protected]>

* fix dumping of output to json

Signed-off-by: Joe Elliott <[email protected]>

* attachExemplars in gRPC diff

Signed-off-by: Joe Elliott <[email protected]>

* added test and bench

Signed-off-by: Joe Elliott <[email protected]>

* remove step

Signed-off-by: Joe Elliott <[email protected]>

* changelog

Signed-off-by: Joe Elliott <[email protected]>

* fix default step

Signed-off-by: Joe Elliott <[email protected]>

* lint

Signed-off-by: Joe Elliott <[email protected]>

* corrected proto import

Signed-off-by: Joe Elliott <[email protected]>

---------

Signed-off-by: Joe Elliott <[email protected]>
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