Skip to content

Commit 07709cc

Browse files
committed
chore(antithesis): Track dropped transactions in as sometimes! assertion
It should be the case that for particularly extreme situations ADP will drop transactions. We are currently unable to see this in-rig except by implication. This commit adds a sometimes! assertion to give visibility into this.
1 parent e839e5a commit 07709cc

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • lib/saluki-components/src/common/datadog

lib/saluki-components/src/common/datadog/io.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,17 @@ fn generate_retry_queue_id(context: ComponentContext, endpoint: &ResolvedEndpoin
610610
}
611611

612612
fn track_queue_drops(telemetry: &ComponentTelemetry, domain: &str, push_result: PushResult) {
613+
saluki_antithesis::sometimes!(
614+
push_result.had_drops(),
615+
"ADP dropped transactions it could not deliver",
616+
{
617+
"domain": domain,
618+
"items_dropped": push_result.items_dropped,
619+
"events_dropped": push_result.events_dropped,
620+
"data_points_dropped": push_result.data_points_dropped
621+
}
622+
);
623+
613624
telemetry.track_dropped_items(push_result.items_dropped);
614625
telemetry.track_dropped_events(push_result.events_dropped);
615626
telemetry.track_data_points_dropped(domain, push_result.data_points_dropped);

0 commit comments

Comments
 (0)