foundations_sentry/settings.rs
1use foundations::settings::settings;
2use std::num::NonZeroU32;
3
4/// Sentry hook settings.
5#[settings]
6pub struct SentrySettings {
7 /// Maximum number of events that can be emitted per second, per fingerprint.
8 pub max_events_per_second: Option<NonZeroU32>,
9 // In the future, we may offer different fingerprinting modes here.
10 // For example, we could offer a "dummy" mode that assigns the same fingerprint
11 // to all events so they all share a single rate limit.
12}