-
Notifications
You must be signed in to change notification settings - Fork 3.8k
core/runtime/v2: remove uses of otelgrpc.UnaryClientInterceptor #12606
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
Conversation
The otelgrpc.UnaryClientInterceptor and otelgrpc.StreamClientInterceptor options were deprecated and removed in favor of NewClientHandler. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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.
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.