From f938a0c28a94b5ddf288f3976ed2d0faf6777079 Mon Sep 17 00:00:00 2001 From: Sammy Kerata Oina <44265300+SammyOina@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:54:47 +0300 Subject: [PATCH] NOISSUE - Replace deprecated gRPC metrics collection with stats handler (#281) Signed-off-by: SammyOina --- pkg/auth/connect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/auth/connect.go b/pkg/auth/connect.go index 7e90dff10..193501e7e 100644 --- a/pkg/auth/connect.go +++ b/pkg/auth/connect.go @@ -101,7 +101,7 @@ func (c *client) Secure() string { // connect creates new gRPC client and connect to gRPC server. func connect(cfg Config) (*grpc.ClientConn, security, error) { opts := []grpc.DialOption{ - grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor()), + grpc.WithStatsHandler(otelgrpc.NewClientHandler()), } secure := withoutTLS tc := insecure.NewCredentials()