-
Notifications
You must be signed in to change notification settings - Fork 4.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
stats/opentelemetry: use TextMapProvider and TracerProvider from TraceOptions instead of otel global #8166
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8166 +/- ##
==========================================
+ Coverage 82.33% 82.38% +0.04%
==========================================
Files 392 393 +1
Lines 39119 39143 +24
==========================================
+ Hits 32210 32247 +37
+ Misses 5593 5579 -14
- Partials 1316 1317 +1
🚀 New features to boost your workflow:
|
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 quick fix.
otelinternaltracing "google.golang.org/grpc/stats/opentelemetry/internal/tracing" | ||
) | ||
|
||
const traceName = "grpc-go" |
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.
nit: tracerName?
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.
Done
@dfawley for second review. Not sure why dependency check is failing. Is it because we removed usages of otel? |
otelinternaltracing "google.golang.org/grpc/stats/opentelemetry/internal/tracing" | ||
) | ||
|
||
const tracerName = "grpc-go" |
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.
I don't see this mentioned in the PR description - why is this changed?
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.
to keep same as metrics https://github.com/grpc/grpc-go/blob/master/stats/opentelemetry/client_metrics.go#L51
…eOptions instead of otel global (grpc#8166)
…eOptions instead of otel global (grpc#8166)
RELEASE NOTES:
TextMapPropagator
andTracerProvider
fromTraceOptions
instead of OpenTelemetry globals.