-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use GRPC interceptors instead of explicit context wrappers #6133
Conversation
Signed-off-by: chahatsagarmain <[email protected]>
Signed-off-by: chahatsagarmain <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6133 +/- ##
==========================================
+ Coverage 96.41% 96.43% +0.01%
==========================================
Files 353 353
Lines 20135 20128 -7
==========================================
- Hits 19414 19410 -4
+ Misses 535 532 -3
Partials 186 186
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: chahatsagarmain <[email protected]>
@@ -117,7 +82,7 @@ func (c *GRPCClient) ArchiveSpanWriter() spanstore.Writer { | |||
|
|||
// GetTrace takes a traceID and returns a Trace associated with that traceID | |||
func (c *GRPCClient) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error) { | |||
stream, err := c.readerClient.GetTrace(upgradeContext(ctx), &storage_v1.GetTraceRequest{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is the code that attaches interceptors to the client that would do these upgrades instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interceptors are being attached to shared client in /plugin/storage/grpc/factory.go
jaeger/plugin/storage/grpc/factory.go
Line 162 in 6a520a5
grpcClient := shared.NewGRPCClient(tracedRemoteConn, untracedRemoteConn) |
Thanks! |
…aegertracing#6133)" This reverts commit 0af8d35.
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test