Skip to content

Commit

Permalink
fix(opentelemetry source): Remove the 4MB default for gRPC request de…
Browse files Browse the repository at this point in the history
…coding (vectordotdev#18306)
  • Loading branch information
neuronull authored and jszwedko committed Aug 18, 2023
1 parent a1dfd54 commit 56177eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sources/opentelemetry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ impl SourceConfig for OpentelemetryConfig {
log_namespace,
events_received: events_received.clone(),
})
.accept_compressed(tonic::codec::CompressionEncoding::Gzip);
.accept_compressed(tonic::codec::CompressionEncoding::Gzip)
// Tonic added a default of 4MB in 0.9. This replaces the old behavior.
.max_decoding_message_size(usize::MAX);

let grpc_source = run_grpc_server(
self.grpc.address,
grpc_tls_settings,
Expand Down

0 comments on commit 56177eb

Please sign in to comment.