deps: Update otelgrpc

Signed-off-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
Bryant Biggs
2023-12-28 09:34:18 -05:00
parent ced9b18c23
commit 78421616e0
86 changed files with 1621 additions and 656 deletions

View File

@@ -144,13 +144,12 @@ func New(ctx context.Context, config *srvconfig.Config) (*Server, error) {
}
serverOpts := []grpc.ServerOption{
grpc.StatsHandler(otelgrpc.NewServerHandler()),
grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
otelgrpc.StreamServerInterceptor(),
grpc_prometheus.StreamServerInterceptor,
streamNamespaceInterceptor,
)),
grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(
otelgrpc.UnaryServerInterceptor(),
grpc_prometheus.UnaryServerInterceptor,
unaryNamespaceInterceptor,
)),