From 9abc6744decad2aa63b05f8bb8bd1d0c7a07dd35 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 9 Apr 2026 19:44:48 +0200 Subject: [PATCH 1/2] feat(outcomes): Add `no_parent_span` outcome --- rust_snuba/src/processors/outcomes.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust_snuba/src/processors/outcomes.rs b/rust_snuba/src/processors/outcomes.rs index 7d81b9a8ea..5df35a8346 100644 --- a/rust_snuba/src/processors/outcomes.rs +++ b/rust_snuba/src/processors/outcomes.rs @@ -25,6 +25,8 @@ const CLIENT_DISCARD_REASONS: &[&str] = &[ "event_processor", // an event was dropped by an SDK ignore config (e.g. an `ignore_spans` deny list) "ignored", + // a span was dropped or not started by an SDK due to a missing parent span + "no_parent_span", // an event was dropped due to a lack of data in the event (eg: not enough samples in a profile) "insufficient_data", // an event was dropped due to an internal SDK error (eg: web worker crash) From 6ef671063567c68cd17d56ed3d93ac6ad65e3c80 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 9 Apr 2026 20:40:11 +0200 Subject: [PATCH 2/2] move to correct position --- rust_snuba/src/processors/outcomes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust_snuba/src/processors/outcomes.rs b/rust_snuba/src/processors/outcomes.rs index 5df35a8346..e885f64f44 100644 --- a/rust_snuba/src/processors/outcomes.rs +++ b/rust_snuba/src/processors/outcomes.rs @@ -25,8 +25,6 @@ const CLIENT_DISCARD_REASONS: &[&str] = &[ "event_processor", // an event was dropped by an SDK ignore config (e.g. an `ignore_spans` deny list) "ignored", - // a span was dropped or not started by an SDK due to a missing parent span - "no_parent_span", // an event was dropped due to a lack of data in the event (eg: not enough samples in a profile) "insufficient_data", // an event was dropped due to an internal SDK error (eg: web worker crash) @@ -35,6 +33,8 @@ const CLIENT_DISCARD_REASONS: &[&str] = &[ "invalid", // events were dropped because of network errors and were not retried. "network_error", + // a span was dropped or not started by an SDK due to a missing parent span + "no_parent_span", // a SDK internal queue (eg: transport queue) overflowed "queue_overflow", // the SDK dropped events because an earlier rate limit instructed the SDK to back off.