Skip to content

Commit 56177eb

Browse files
neuronulljszwedko
authored andcommitted
fix(opentelemetry source): Remove the 4MB default for gRPC request decoding (vectordotdev#18306)
1 parent a1dfd54 commit 56177eb

File tree

1 file changed

+4
-1
lines changed
  • src/sources/opentelemetry

1 file changed

+4
-1
lines changed

src/sources/opentelemetry/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ impl SourceConfig for OpentelemetryConfig {
138138
log_namespace,
139139
events_received: events_received.clone(),
140140
})
141-
.accept_compressed(tonic::codec::CompressionEncoding::Gzip);
141+
.accept_compressed(tonic::codec::CompressionEncoding::Gzip)
142+
// Tonic added a default of 4MB in 0.9. This replaces the old behavior.
143+
.max_decoding_message_size(usize::MAX);
144+
142145
let grpc_source = run_grpc_server(
143146
self.grpc.address,
144147
grpc_tls_settings,

0 commit comments

Comments
 (0)