-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[fix][grpc] Disable tracing in grpc storage writer clients #6125
Conversation
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@yurishkuro where would be a good place to write a test for this? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6125 +/- ##
==========================================
- Coverage 96.42% 96.41% -0.02%
==========================================
Files 353 353
Lines 20112 20137 +25
==========================================
+ Hits 19394 19416 +22
- Misses 533 535 +2
- Partials 185 186 +1
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: Mahad Zaryab <mahadzaryab1@gmail.com>
For the time being - I'm using the v2 healthcheck endpoint which wasn't working in #6113. It looks to be working with this change in place now. |
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
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.
If this closes any other tickets or prs please include in description.
Also give credit to the original author. Did you reuse any of their commits? When you go GitHub automatically includes them in the PR summary.
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Done
I didn't reuse any of their commits since I didn't have permissions to modify the PR so I started from scratch. I manually edited the PR description to add the original author as a co-author for this PR. |
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
For the future - you don't need to modify their pr, just do 'gh pr checkout ###' then create a new branch and push it to a new pr. |
plugin/storage/grpc/factory.go
Outdated
opts = append(opts, grpc.WithStreamInterceptor(bearertoken.NewStreamClientInterceptor())) | ||
|
||
remoteConn, err := newClient(opts...) | ||
baseOpts = append(baseOpts, grpc.WithUnaryInterceptor(bearertoken.NewUnaryClientInterceptor())) |
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.
Are you sure declaring two options for an interceptor type won't have latest-wins effect? In the pr that introduced bearer interceptors we used a composite interceptor.
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.
@yurishkuro looks like grpc.NewClient
chains the interceptors into one (ref: https://github.com/grpc/grpc-go/blob/cb329375b14e0ddd4e454e18405a732f7c2ccd72/clientconn.go#L170-L171)
chainUnaryClientInterceptors(cc)
chainStreamClientInterceptors(cc)
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.
Not sure about that, but the way the functional options are processed is they just override the only interceptor slot: https://github.com/grpc/grpc-go/blob/cb329375b14e0ddd4e454e18405a732f7c2ccd72/dialoptions.go#L535
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.
chained the unary and stream interceptors together
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
…aegertracing#6125)" This reverts commit a4efe57.
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
Co-Authors
This PR is a continuation of #5979
Co-authored-by: cx 1249843194@qq.com