diff --git a/grpc/grpc.go b/grpc/grpc.go index 61f9b25..7e5e239 100644 --- a/grpc/grpc.go +++ b/grpc/grpc.go @@ -167,12 +167,14 @@ func NewRuntime(opts ...RuntimeOption) *Runtime { var healthMonitors []serviceHealthMonitor s := grpc.NewServer( - append(ro.serverOptions, []grpc.ServerOption{ - grpc.StatsHandler(otelgrpc.NewServerHandler( - otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents), - )), - grpc.Creds(ro.tc), - }...)..., + append(ro.serverOptions, + []grpc.ServerOption{ + grpc.StatsHandler(otelgrpc.NewServerHandler( + otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents), + )), + grpc.Creds(ro.tc), + }..., + )..., ) for _, svc := range ro.services { svc.registerFunc(s)