diff --git a/services/server/server.go b/services/server/server.go index 038389514cb7..b4eb6d4eee49 100644 --- a/services/server/server.go +++ b/services/server/server.go @@ -126,12 +126,13 @@ 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, )),