Skip to content

Commit 3bd6f1f

Browse files
authored
feat(outcomes): Add 'ignored' reason to client discard reasons list (#7635)
Adds a new discard reason `'ignored'` to the list of allowed reasons. The intention is to use this new reason to primarily surface when spans were ignored via the `ignoreSpans` deny list (an SDK option). The naming choice is general on purpose to in the future also use this reason with other telemetry type deny lists (e.g. ignoreErrors).
1 parent f52dac7 commit 3bd6f1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust_snuba/src/processors/outcomes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const CLIENT_DISCARD_REASONS: &[&str] = &[
2121
"cache_overflow",
2222
// an event was dropped by an event processor; may also be used for ignored exceptions / errors
2323
"event_processor",
24+
// an event was dropped by an SDK ignore config (e.g. an `ignore_spans` deny list)
25+
"ignored",
2426
// an event was dropped due to a lack of data in the event (eg: not enough samples in a profile)
2527
"insufficient_data",
2628
// an event was dropped due to an internal SDK error (eg: web worker crash)

0 commit comments

Comments
 (0)