mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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.
This commit is contained in:
@@ -303,7 +303,14 @@ fn event_rate_limiter(timeout: Duration) -> BeforeCallback<Event<'static>> {
|
||||
reason = "We need to match Sentry's config signature."
|
||||
)]
|
||||
fn append_tracing_fields_to_message(mut log: Log) -> Option<Log> {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user