pub struct AnalyticsConfigBuilder { /* private fields */ }Expand description
Builder for AnalyticsConfig
Implementations§
Source§impl AnalyticsConfigBuilder
impl AnalyticsConfigBuilder
pub fn new() -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn normalize_queries(self, normalize: bool) -> Self
pub fn track_parameters(self, track: bool) -> Self
pub fn retention_days(self, days: u64) -> Self
pub fn max_fingerprints(self, max: usize) -> Self
pub fn slow_query(self, config: SlowQueryConfig) -> Self
pub fn patterns(self, config: PatternConfig) -> Self
pub fn sampling(self, config: SamplingConfig) -> Self
pub fn alerts(self, config: AlertConfig) -> Self
pub fn build(self) -> AnalyticsConfig
Trait Implementations§
Source§impl Debug for AnalyticsConfigBuilder
impl Debug for AnalyticsConfigBuilder
Source§impl Default for AnalyticsConfigBuilder
impl Default for AnalyticsConfigBuilder
Source§fn default() -> AnalyticsConfigBuilder
fn default() -> AnalyticsConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalyticsConfigBuilder
impl RefUnwindSafe for AnalyticsConfigBuilder
impl Send for AnalyticsConfigBuilder
impl Sync for AnalyticsConfigBuilder
impl Unpin for AnalyticsConfigBuilder
impl UnsafeUnpin for AnalyticsConfigBuilder
impl UnwindSafe for AnalyticsConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more