query-frontend: also extract Trace from TraceByIDResponse when returning protobuf#1025
Merged
yvrhdn merged 2 commits intografana:mainfrom Oct 12, 2021
Merged
Conversation
Contributor
Author
|
I dislike that we unmarshal and marshal
tempo/modules/frontend/querysharding.go Lines 169 to 174 in e7a3731
I guess this is a limitation of building a processing pipeline with |
Collaborator
Agree. For larger traces repeatedly marshalling/unmarshalling is very inefficient. However, for most queries, this won't even be noticeable so I'm fine with keeping as is for now. |
joe-elliott
approved these changes
Oct 12, 2021
mdisibio
pushed a commit
to mdisibio/tempo
that referenced
this pull request
Oct 13, 2021
…ing protobuf (grafana#1025) * query-frontend: also extract Trace from TraceByIDResponse when returning protobuf * Fix CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
Fixes a bug introduced by #1007 and reported in #1024.
When querying Tempo with
Accept: application/protobuf(as Grafana does) the query-frontend will not unmarshal/marshal the response from other middleware but passes it directly to the caller. #1007 changesTraceByIDResponseto add metrics. To avoid passing this to the caller, we should also unmarshal and marshal protobuf responses.Which issue(s) this PR fixes:
Fixes #1024
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]