Skip to content

Commit 69323dd

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 76a96d2 commit 69323dd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,19 @@ fn generate_retry_queue_id(context: ComponentContext, endpoint: &ResolvedEndpoin
715715
}
716716

717717
fn track_queue_drops(telemetry: &ComponentTelemetry, domain: &str, push_result: PushResult) {
718+
if push_result.had_drops() {
719+
saluki_antithesis::sometimes!(
720+
true,
721+
"ADP dropped transactions",
722+
{
723+
"domain": domain,
724+
"items_dropped": push_result.items_dropped,
725+
"events_dropped": push_result.events_dropped,
726+
"data_points_dropped": push_result.data_points_dropped
727+
}
728+
);
729+
}
730+
718731
telemetry.track_dropped_items(push_result.items_dropped);
719732
telemetry.track_dropped_events(push_result.events_dropped);
720733
telemetry.track_data_points_dropped(domain, push_result.data_points_dropped);

0 commit comments

Comments
 (0)