From 025d25032e804e1c7cd08999ffba84a9e170e672 Mon Sep 17 00:00:00 2001 From: jjbayer Date: Fri, 20 Sep 2024 07:18:04 +0000 Subject: [PATCH] deploy: d8e6bbc4e32d7b7d56c3ea6e5d8cecf281e1ab99 --- relay_monitors/fn.process_check_in.html | 2 +- .../services/processor/span/processing.rs.html | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/relay_monitors/fn.process_check_in.html b/relay_monitors/fn.process_check_in.html index 3204c4bc81..305e024a78 100644 --- a/relay_monitors/fn.process_check_in.html +++ b/relay_monitors/fn.process_check_in.html @@ -1,5 +1,5 @@ process_check_in in relay_monitors - Rust

Function relay_monitors::process_check_in

source ยท
pub fn process_check_in(
     payload: &[u8],
-    project_id: ProjectId,
+    project_id: ProjectId,
 ) -> Result<ProcessedCheckInResult, ProcessCheckInError>
Expand description

Normalizes a monitor check-in payload.

\ No newline at end of file diff --git a/src/relay_server/services/processor/span/processing.rs.html b/src/relay_server/services/processor/span/processing.rs.html index f38b42144a..c2fb3e6e02 100644 --- a/src/relay_server/services/processor/span/processing.rs.html +++ b/src/relay_server/services/processor/span/processing.rs.html @@ -1165,6 +1165,11 @@ 1165 1166 1167 +1168 +1169 +1170 +1171 +1172
//! Contains the processing-only functionality.
 
 use std::error::Error;
@@ -1259,7 +1264,12 @@
 
         if let Err(e) = normalize(&mut annotated_span, normalize_span_config.clone()) {
             relay_log::debug!("failed to normalize span: {}", e);
-            return ItemAction::Drop(Outcome::Invalid(DiscardReason::Internal));
+            return ItemAction::Drop(Outcome::Invalid(match e {
+                ProcessingError::InvalidTransaction | ProcessingError::InvalidTimestamp => {
+                    DiscardReason::InvalidSpan
+                }
+                _ => DiscardReason::Internal,
+            }));
         };
 
         if let Some(span) = annotated_span.value() {