Skip to content

Commit 406a09c

Browse files
committed
consistent retries to 3
1 parent 4d03c5e commit 406a09c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bottlecap/src/traces/stats_flusher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::lifecycle::invocation::processor::S_TO_MS;
1111
use crate::traces::http_client::HttpClient;
1212
use crate::traces::stats_aggregator::StatsAggregator;
1313

14-
const STATS_FLUSH_RETRY_COUNT: usize = 5;
14+
const STATS_FLUSH_RETRY_COUNT: usize = 3;
1515
use dogstatsd::api_key::ApiKeyFactory;
1616
use libdd_common::Endpoint;
1717
use libdd_trace_protobuf::pb;

bottlecap/src/traces/trace_flusher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use crate::lifecycle::invocation::processor::S_TO_MS;
2020
use crate::traces::http_client::HttpClient;
2121
use crate::traces::trace_aggregator_service::AggregatorHandle;
2222

23-
/// Retry strategy for trace flushing: 5 retries with no delay between attempts.
23+
/// Retry strategy for trace flushing: 3 retries with no delay between attempts.
2424
fn trace_retry_strategy() -> RetryStrategy {
25-
RetryStrategy::new(5, 0, RetryBackoffType::Constant, None)
25+
RetryStrategy::new(3, 0, RetryBackoffType::Constant, None)
2626
}
2727

2828
pub struct TraceFlusher {

0 commit comments

Comments
 (0)