api/server/router/grpc/grpc.go:24:69: SA1019: otelgrpc.StreamServerInterceptor is deprecated: Use [NewServerHandler] instead. (staticcheck)
stream := grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(otelgrpc.StreamServerInterceptor(), grpcerrors.StreamServerInterceptor))
^
api/server/router/grpc/grpc.go:49:15: SA1019: otelgrpc.UnaryServerInterceptor is deprecated: Use [NewServerHandler] instead. (staticcheck)
withTrace := otelgrpc.UnaryServerInterceptor()
^
libcontainerd/supervisor/remote_daemon.go:304:32: SA1019: otelgrpc.UnaryClientInterceptor is deprecated: Use [NewClientHandler] instead. (staticcheck)
grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor()),
^
libcontainerd/supervisor/remote_daemon.go:305:33: SA1019: otelgrpc.StreamClientInterceptor is deprecated: Use [NewClientHandler] instead. (staticcheck)
grpc.WithStreamInterceptor(otelgrpc.StreamClientInterceptor()),
^
daemon/daemon.go:965:29: SA1019: otelgrpc.UnaryClientInterceptor is deprecated: Use [NewClientHandler] instead. (staticcheck)
grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor()),
^
daemon/daemon.go:966:30: SA1019: otelgrpc.StreamClientInterceptor is deprecated: Use [NewClientHandler] instead. (staticcheck)
grpc.WithStreamInterceptor(otelgrpc.StreamClientInterceptor()),
^
Description
Looks like this needs some local changes (either temporary
//nolintfor the release branches if we want to backport, or changes in code);StreamServerInterceptor,UnaryServerInterceptor, andStreamClientInterceptorwere deprecated in open-telemetry/opentelemetry-go-contrib@23bd4ed