Skip to content

Commit 0a357bc

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 74e227c commit 0a357bc

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
@@ -691,6 +691,17 @@ fn generate_retry_queue_id(context: ComponentContext, endpoint: &ResolvedEndpoin
691691
}
692692

693693
fn track_queue_drops(telemetry: &ComponentTelemetry, domain: &str, push_result: PushResult) {
694+
saluki_antithesis::sometimes!(
695+
push_result.had_drops(),
696+
"ADP dropped transactions it could not deliver",
697+
{
698+
"domain": domain,
699+
"items_dropped": push_result.items_dropped,
700+
"events_dropped": push_result.events_dropped,
701+
"data_points_dropped": push_result.data_points_dropped
702+
}
703+
);
704+
694705
telemetry.track_dropped_items(push_result.items_dropped);
695706
telemetry.track_dropped_events(push_result.events_dropped);
696707
telemetry.track_data_points_dropped(domain, push_result.data_points_dropped);

0 commit comments

Comments
 (0)