relay_event_normalization/normalize/span/
mod.rs

1//! Span normalization logic.
2
3use once_cell::sync::Lazy;
4use regex::Regex;
5
6pub mod ai;
7pub mod country_subregion;
8pub mod description;
9pub mod exclusive_time;
10pub mod reparent_broken_spans;
11pub mod tag_extraction;
12
13/// Regex used to scrub hex IDs and multi-digit numbers from table names and other identifiers.
14pub static TABLE_NAME_REGEX: Lazy<Regex> = Lazy::new(|| {
15    Regex::new(
16        r"(?ix)
17        [0-9a-f]{8}_[0-9a-f]{4}_[0-9a-f]{4}_[0-9a-f]{4}_[0-9a-f]{12} |
18        [0-9a-f]{8,} |
19        \d\d+
20        ",
21    )
22    .unwrap()
23});