core/runtime/v2: remove uses of otelgrpc.UnaryClientInterceptor#12606
core/runtime/v2: remove uses of otelgrpc.UnaryClientInterceptor#12606mxpv merged 1 commit intocontainerd:mainfrom
Conversation
The otelgrpc.UnaryClientInterceptor and otelgrpc.StreamClientInterceptor options were deprecated and removed in favor of NewClientHandler. Signed-off-by: Sebastiaan van Stijn <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR updates the containerd codebase to use the new OpenTelemetry gRPC instrumentation API by replacing deprecated interceptor functions with the modern stats handler approach.
- Replaces
otelgrpc.UnaryClientInterceptor()andotelgrpc.StreamClientInterceptor()withotelgrpc.NewClientHandler() - Removes obsolete
nolint:staticcheckdirectives that were suppressing deprecation warnings - Updates documentation to reflect the new API usage
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| core/runtime/v2/shim.go | Updates gRPC client connection setup to use the new otelgrpc.NewClientHandler() instead of deprecated interceptors |
| docs/tracing.md | Updates the client tracing example to demonstrate the new API usage |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Seems correct. |
|
Thanks! Let me move this one out of draft 👍 |
|
/cherry-pick release/2.2 |
|
/cherry-pick release/2.1 |
|
@thaJeztah: new pull request created: #12622 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@thaJeztah: new pull request created: #12623 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
The otelgrpc.UnaryClientInterceptor and otelgrpc.StreamClientInterceptor options were deprecated and removed in favor of NewClientHandler.