Skip to content

Commit

Permalink
fix: Remove custom gRPC metrics
Browse files Browse the repository at this point in the history
Save money on DD reporting.
  • Loading branch information
Matovidlo committed Dec 10, 2024
1 parent e0ed0b7 commit 1cc117c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1cc117c

Please sign in to comment.