-
Notifications
You must be signed in to change notification settings - Fork 263
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
Replace OpenCensus with OpenTelemetry #2136
base: main
Are you sure you want to change the base?
Conversation
b6f4026
to
78eeeb7
Compare
@microsoft-github-policy-service agree |
The OpenCensus repo has been archived on July 31, 2023 (see [1]), and thus will receive no further updates. OTel offers a bridge to help transition however this means every project using hcsshim need to set up that bridge. At this point, it seems better to transition to OTel instead. This commit fully replaces OpenCensus with OpenTelemetry v1.21. - Package `internal/oc` has been replaced by `internal/otelutil`. - `octtrpc` has been replaced by `otelttrpc`. - `go.opencensus.io/plugin/ocgrpc` has been replaced by `go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc`. - Whenever possible, span attributes are passed directly when the span is created. [1]: https://opentelemetry.io/blog/2023/sunsetting-opencensus/ Signed-off-by: Albin Kerouanton <[email protected]>
Previous commit made clear that `(*externalProcess).Wait()` was missing a call to `span.End()`. Signed-off-by: Albin Kerouanton <[email protected]>
78eeeb7
to
136345a
Compare
Hi @akerouanton, thanks for sending this PR! Currently we have some internal usage of the OC spans, so I'd like to make sure we have a smooth transition from OC to OTel to ensure nothing breaks. So, my current thinking is we should do something like the following:
With this in place, we'd be able to get OTel support merged, but keep internal usage going to OC until we can validate that the OTel work won't break anything. As a plus, this approach also gives us a way to potentially inject other span-wide instrumentation, such as using Let me know if you have thoughts on this approach. |
Hi, The OpenCensus certificate has expired, so the dependency can't get downloaded anymore with a regular
|
This PR is almost ready to review but I'd like to see if/where the CI fails before putting it out of draft mode.
The OpenCensus repo has been archived on July 31, 2023 (see here), and thus will receive no further updates. OTel offers a bridge to help transition however this means every project using hcsshim need to set up that bridge. At this point, it seems better to transition to OTel instead.
This commit fully replaces OpenCensus with OpenTelemetry v1.21.
internal/oc
has been replaced byinternal/otelutil
.octtrpc
has been replaced byotelttrpc
.go.opencensus.io/plugin/ocgrpc
has been replaced bygo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
.