fix(grpc): increase MaxSendMsgSize (#12066)

# Which Problems Are Solved

Users exporting larger orgsanizations were facing grpc message size
limits of 4 MiB, while trying to export 6.3 MiB of data. Other export
methods like S3 aren't implemented.

# How the Problems Are Solved

Set MaxSendMsgSize to 10 MiB (allow some overhead). This is not a
long-term solution and we should investigate better ways of export.

# Additional Changes

- none

# Additional Context

- Support ticket
This commit is contained in:
Tim Möhlmann
2026-04-15 13:04:22 +00:00
committed by GitHub
parent e19bb7a173
commit 177589a0a8
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -132,6 +132,7 @@ func CreateGatewayWithPrefix(
client_middleware.UnaryActivityClientInterceptor(),
),
grpc.WithStatsHandler(client_middleware.DefaultTracingClient()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxSendMsgSize)),
}
connection, err := dial(ctx, port, opts)
if err != nil {
@@ -159,6 +160,7 @@ func CreateGateway(
client_middleware.UnaryActivityClientInterceptor(),
),
grpc.WithStatsHandler(client_middleware.DefaultTracingClient()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxSendMsgSize)),
})
if err != nil {
return nil, err