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 Aug 18, 2023
1 parent 2a45722 commit a6262cd
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 a6262cd

Please sign in to comment.