relay_event_normalization/
lib.rs1#![warn(missing_docs)]
4#![doc(
5 html_logo_url = "https://raw.githubusercontent.com/getsentry/relay/master/artwork/relay-icon.png",
6 html_favicon_url = "https://raw.githubusercontent.com/getsentry/relay/master/artwork/relay-icon.png"
7)]
8
9mod clock_drift;
10mod event;
11mod event_error;
12mod geo;
13mod legacy;
14mod logentry;
15mod mechanism;
16mod normalize;
17mod regexes;
18mod remove_other;
19mod schema;
20mod stacktrace;
21mod statsd;
22mod timestamp;
23mod transactions;
24mod trimming;
25mod validation;
26
27pub use validation::{EventValidationConfig, validate_event, validate_span};
28pub mod replay;
29pub use event::{
30 NormalizationConfig, normalize_event, normalize_measurements, normalize_performance_score,
31};
32pub use normalize::breakdowns::*;
33pub use normalize::*;
34pub use remove_other::RemoveOtherProcessor;
35pub use schema::SchemaProcessor;
36pub use timestamp::TimestampProcessor;
37pub use transactions::*;
38pub use trimming::TrimmingProcessor;
39pub use user_agent::*;
40
41pub use self::clock_drift::*;
42pub use self::geo::*;
43
44pub use sentry_release_parser::{validate_environment, validate_release};
45
46enum MaxChars {
51 TagKey,
52 TagValue,
53 Distribution,
54 Logger,
55}
56
57impl MaxChars {
58 pub fn limit(self) -> usize {
59 match self {
60 Self::TagKey => 200,
61 Self::TagValue => 200,
62 Self::Distribution => 64,
63 Self::Logger => 64,
64 }
65 }
66}