Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
NOISSUE - Replace deprecated gRPC metrics collection with stats handl…
Browse files Browse the repository at this point in the history
…er (#281)

Signed-off-by: SammyOina <[email protected]>
  • Loading branch information
SammyOina authored Jan 29, 2024
1 parent 562c578 commit f938a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f938a0c

Please sign in to comment.