From 1cc117c59d8d5d050b4aa97e1eb9e08992c25127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Va=C5=A1ko?= Date: Tue, 10 Dec 2024 11:09:13 +0100 Subject: [PATCH] fix: Remove custom gRPC metrics Save money on DD reporting. --- .../storage/level/local/diskwriter/network/rpc/client.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/pkg/service/stream/storage/level/local/diskwriter/network/rpc/client.go b/internal/pkg/service/stream/storage/level/local/diskwriter/network/rpc/client.go index 508d1adc93..03cb34d921 100644 --- a/internal/pkg/service/stream/storage/level/local/diskwriter/network/rpc/client.go +++ b/internal/pkg/service/stream/storage/level/local/diskwriter/network/rpc/client.go @@ -5,7 +5,6 @@ import ( "io" "net" - "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/connectivity" @@ -86,12 +85,6 @@ func OpenNetworkFile(ctx context.Context, logger log.Logger, telemetry telemetry grpc.WithContextDialer(dialer), grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultServiceConfig(serviceConfig), - grpc.WithStatsHandler( - otelgrpc.NewClientHandler( - otelgrpc.WithMeterProvider(telemetry.MeterProvider()), - otelgrpc.WithTracerProvider(telemetry.TracerProvider()), - ), - ), ) if err != nil { return nil, err