Skip to content

Commit 156eba5

Browse files
authored
chore: Change trace payload size limit from 3.2 MiB to 3.2 MB (#763)
Change trace payload size limit from 3.2 MiB (3.2 * 1024 * 1024) to 3.2 MB (3.2 * 1000 * 1000) because that's more commonly used in the codebase. https://github.com/search?q=org%3ADataDog%203200000&type=code
1 parent 9301d9c commit 156eba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bottlecap/src/traces/trace_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::collections::VecDeque;
55
/// that the Datadog Trace API accepts. The value is 3.2 MB.
66
///
77
/// <https://github.com/DataDog/datadog-agent/blob/9d57c10a9eeb3916e661d35dbd23c6e36395a99d/pkg/trace/writer/trace.go#L27-L31>
8-
pub const MAX_CONTENT_SIZE_BYTES: usize = (32 * 1_024 * 1_024) / 10;
8+
pub const MAX_CONTENT_SIZE_BYTES: usize = 3_200_000;
99

1010
// Bundle SendDataBuilder with payload size because SendDataBuilder doesn't
1111
// expose a getter for the size

0 commit comments

Comments
 (0)