diff --git a/libdd-trace-stats/src/stats_exporter.rs b/libdd-trace-stats/src/stats_exporter.rs index 24aa5d4c1b..61b7e575a5 100644 --- a/libdd-trace-stats/src/stats_exporter.rs +++ b/libdd-trace-stats/src/stats_exporter.rs @@ -17,7 +17,7 @@ use libdd_capabilities::{HttpClientCapability, MaybeSend, SleepCapability}; use libdd_common::Endpoint; use libdd_shared_runtime::Worker; use libdd_trace_protobuf::pb; -use libdd_trace_utils::send_with_retry::{send_with_retry, RetryStrategy}; +use libdd_trace_utils::send_with_retry::{send_with_retry, RetryBackoffType, RetryStrategy}; use libdd_trace_utils::trace_utils::TracerHeaderTags; use libdd_trace_utils::tracer_metadata::TracerMetadata; use std::fmt::Debug; @@ -248,7 +248,7 @@ impl &self.endpoint, body, &headers, - &RetryStrategy::default(), + &RetryStrategy::new(0, 0, RetryBackoffType::Constant, None), ) .await; @@ -464,8 +464,8 @@ mod tests { send_status.unwrap_err(); assert!( - poll_for_mock_hit(&mut mock, 10, 100, 6, true).await, - "Expected max retry attempts" + poll_for_mock_hit(&mut mock, 10, 100, 1, true).await, + "Expected a single attempt with no retries" ); }