Plugins: Bump otelgrpc instrumentation to 0.47.0 (#83674)

* bump dep

* go mod tidy

* add replace

* bump go.opentelemetry.io/otel/sdk

* fixup

* fix linter
This commit is contained in:
Will Browne
2024-03-01 10:57:17 +01:00
committed by GitHub
parent 822e55972b
commit d6feb8474f
4 changed files with 97 additions and 94 deletions
@@ -42,13 +42,12 @@ func newClientConfig(executablePath string, env []string, logger log.Logger,
AllowedProtocols: []goplugin.Protocol{goplugin.ProtocolGRPC},
GRPCDialOptions: []grpc.DialOption{
grpc.WithChainUnaryInterceptor(
otelgrpc.UnaryClientInterceptor(),
grpc_opentracing.UnaryClientInterceptor(),
),
grpc.WithChainStreamInterceptor(
otelgrpc.StreamClientInterceptor(),
grpc_opentracing.StreamClientInterceptor(),
),
grpc.WithStatsHandler(otelgrpc.NewClientHandler()),
},
}
}