From 63af769f8e80bc3f538eeeeeac1a0ae4fdd73f32 Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Wed, 14 Feb 2024 13:07:15 -0600 Subject: [PATCH] fix(otlp): Increasing the grpc server data max size (#3641) --- server/otlp/grpc_server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/otlp/grpc_server.go b/server/otlp/grpc_server.go index ae44e54c39..2239fd7357 100644 --- a/server/otlp/grpc_server.go +++ b/server/otlp/grpc_server.go @@ -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)