-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update go-grpc-middleware to v2.0.0 #6651
Conversation
861b8cf
to
a66c22e
Compare
1f7d10b
to
2c1ffdf
Compare
4a463e6
to
71b0a8f
Compare
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.
LGTM, thanks for this :) Please fix linting failures. I believe the e2e failure is a flake.
go.mod
Outdated
github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165 // indirect | ||
github.com/golang-jwt/jwt/v5 v5.0.0 // indirect | ||
github.com/google/s2a-go v0.1.4 // indirect | ||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect |
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.
What's the source of the 1.3.0
import from?
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.
It might be some dependency that uses old grpc-middleware (likely)
pkg/tracing/interceptors/reporter.go
Outdated
@@ -0,0 +1,82 @@ | |||
// Copyright 2016 Michal Witkowski. All Rights Reserved. |
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.
Just for clarification:
We are doing this temporarily until we migrate Thanos Tracing to OTEL provider, instead of OpenTracing. I do believe most of them are OTEL compatible now, but it was a good idea to split it up.
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.
Some comments from a 1st pass
c56eba3
to
f0792ac
Compare
/* | ||
This was copied over from https://github.com/grpc-ecosystem/go-grpc-middleware/tree/v2.0.0-rc.3 | ||
and modified to support tracing in Thanos till migration to Otel is supported. | ||
*/ |
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.
Since this directory was copied from go-grpc-middleware repo. I was not sure how to handle the licensing.
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.
LGTM ✅
It would be great if we can move this forward. I am kind of blocked by this right now. |
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.
LGTM. I tried this branch locally and fixed conflicts. It worked for me.
I didn't test all the features changed though, like logging and tracing.
a256931
to
3cd80ca
Compare
Looks like unit tests are still failing. |
19cd9f6
to
bfb0b26
Compare
Could we get another round of reviews, please? 🥺 |
bfb0b26
to
4d7e417
Compare
@coleenquadros would you mind rebasing and we can merge this PR. |
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
4d971b5
to
b84242a
Compare
…grpc middleware Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
@fpetkovski @pedro-stanaka I have rebased the changes. Sorry for the delay in response. |
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.
Thx for your work, this will unblock a lot of nice improvements around metric instrumentation for thanos.
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.
Let's merge before we run into another conflict.
(PR for adding trace ID to HTTP logging middleware - add trace id to http logging middleware #6611)
Changes
Verification