From 3961f6e29932ddb1aba047cb592fb5ef6134a4d4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 1 Jul 2025 16:12:06 +0200 Subject: [PATCH] chore(rust): ignore `parent_span_id` (#9738) This field is included in the tracing logs but doesn't need to be included in our message formatting as it is just noise for us. --- rust/telemetry/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rust/telemetry/src/lib.rs b/rust/telemetry/src/lib.rs index 6d209c5ed..7f622d8f1 100644 --- a/rust/telemetry/src/lib.rs +++ b/rust/telemetry/src/lib.rs @@ -303,7 +303,14 @@ fn event_rate_limiter(timeout: Duration) -> BeforeCallback> { reason = "We need to match Sentry's config signature." )] fn append_tracing_fields_to_message(mut log: Log) -> Option { - const IGNORED_ATTRS: &[&str] = &["os.", "sentry.", "tracing.", "server.", "user."]; + const IGNORED_ATTRS: &[&str] = &[ + "os.", + "sentry.", + "tracing.", + "server.", + "user.", + "parent_span_id", + ]; for (key, attribute) in &log.attributes { let LogAttribute(serde_json::Value::String(attr_string)) = &attribute else {