From 3134328796e879af95852a69ee08be749c545d0e Mon Sep 17 00:00:00 2001 From: Oscar Reyes Date: Wed, 14 Feb 2024 12:52:05 -0600 Subject: [PATCH] fix(otlp): Increasing the grpc server data max size --- 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)