From 9a03d0a9b07a4718a7824225dd1c4a6ff9c810a6 Mon Sep 17 00:00:00 2001 From: Sebastian Maj Date: Tue, 18 Jul 2023 10:51:40 +0100 Subject: [PATCH] fix(datadog_traces) align max payload size with DD agent --- src/sinks/datadog/traces/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sinks/datadog/traces/config.rs b/src/sinks/datadog/traces/config.rs index bb8f4d183d63d..a26475bd95d2c 100644 --- a/src/sinks/datadog/traces/config.rs +++ b/src/sinks/datadog/traces/config.rs @@ -32,14 +32,14 @@ use crate::{ tls::{MaybeTlsSettings, TlsEnableableConfig}, }; -// The Datadog API has a hard limit of 3.2MB for uncompressed payloads. +// The Datadog API has a hard limit of 25MB for uncompressed payloads. // Beyond this limit the payload will be ignored, enforcing a slight lower // limit as a safety margin. -pub const BATCH_GOAL_BYTES: usize = 3_000_000; +pub const BATCH_GOAL_BYTES: usize = 25_000_000; pub const BATCH_MAX_EVENTS: usize = 1_000; pub const BATCH_DEFAULT_TIMEOUT_SECS: f64 = 10.0; -pub const PAYLOAD_LIMIT: usize = 3_200_000; +pub const PAYLOAD_LIMIT: usize = 26_214_400; const DEFAULT_REQUEST_RETRY_ATTEMPTS: usize = 5; const DEFAULT_REQUEST_RETRY_MAX_DURATION_SECS: u64 = 300;