Skip to content

Commit 2c96f1c

Browse files
jchrostek-ddclaude
andcommitted
fix(otlp): lower gRPC max message size cap to 50MB
Align with trace agent's TRACE_REQUEST_BODY_LIMIT (50MB) instead of 64MB. More appropriate for Lambda's memory-constrained environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 48f2ff6 commit 2c96f1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bottlecap/src/otlp/grpc_agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::{
2323

2424
const OTLP_AGENT_GRPC_PORT: u16 = 4317;
2525
const DEFAULT_MAX_RECV_MSG_SIZE: usize = 4 * 1024 * 1024; // 4MB default
26-
const MAX_RECV_MSG_SIZE_CAP: usize = 64 * 1024 * 1024; // 64MB cap to prevent DoS
26+
const MAX_RECV_MSG_SIZE_CAP: usize = 50 * 1024 * 1024; // 50MB cap (matches trace agent)
2727

2828
struct OtlpGrpcService {
2929
config: Arc<Config>,

0 commit comments

Comments
 (0)