Skip to content

Commit

Permalink
fix(otlp): Increasing the grpc server data max size (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar authored Feb 14, 2024
1 parent 1d33485 commit 63af769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/otlp/grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ func (s *grpcServer) SetLogger(logger *zap.Logger) {
}

func (s *grpcServer) Start() error {
s.gServer = grpc.NewServer()
size := 1024 * 1024 * 50
s.gServer = grpc.NewServer(
grpc.MaxSendMsgSize(size),
grpc.MaxRecvMsgSize(size),
)
listener, err := net.Listen("tcp", s.addr)
if err != nil {
return fmt.Errorf("cannot listen on address %s: %w", s.addr, err)
Expand Down

0 comments on commit 63af769

Please sign in to comment.