pub struct ObservabilityBuilder { /* private fields */ }Expand description
Builder for observability system
Implementations§
Source§impl ObservabilityBuilder
impl ObservabilityBuilder
pub fn new() -> Self
pub fn with_system_id(self, id: impl Into<String>) -> Self
pub fn with_environment(self, env: impl Into<String>) -> Self
pub fn with_sample_rate(self, rate: f64) -> Self
pub fn with_batch_size(self, size: usize) -> Self
pub fn with_flush_interval(self, seconds: u64) -> Self
pub fn enable_dashboard(self, enabled: bool) -> Self
pub fn with_dashboard_port(self, port: u16) -> Self
pub fn enable_alerts(self, enabled: bool) -> Self
pub fn enable_profiling(self, enabled: bool) -> Self
pub fn with_retention_days(self, days: u32) -> Self
pub async fn build(self) -> RragResult<ObservabilitySystem>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObservabilityBuilder
impl RefUnwindSafe for ObservabilityBuilder
impl Send for ObservabilityBuilder
impl Sync for ObservabilityBuilder
impl Unpin for ObservabilityBuilder
impl UnwindSafe for ObservabilityBuilder
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