Skip to content

Commit aea1ba4

Browse files
committed
feat: grpc server stats handler
1 parent 450902d commit aea1ba4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/servers/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func (s *Container) Run(
158158
opts := []grpc.ServerOption{
159159
grpc.ChainUnaryInterceptor(unaryInterceptors...),
160160
grpc.ChainStreamInterceptor(streamingInterceptors...),
161+
grpc.StatsHandler(otelgrpc.NewServerHandler()),
161162
}
162163

163164
if srv.GRPC.TLSConfig.Enabled {

0 commit comments

Comments
 (0)