pub struct ObservabilityStack {
pub metrics: Option<MetricsRegistry>,
pub health: Option<HealthChecker>,
/* private fields */
}Expand description
Complete observability stack
Fields§
§metrics: Option<MetricsRegistry>§health: Option<HealthChecker>Implementations§
Source§impl ObservabilityStack
impl ObservabilityStack
Sourcepub fn init(config: &ObservabilityConfig) -> Result<Self, String>
pub fn init(config: &ObservabilityConfig) -> Result<Self, String>
Initialize the observability stack
Sourcepub fn metrics(&self) -> Option<&MetricsRegistry>
pub fn metrics(&self) -> Option<&MetricsRegistry>
Get metrics registry
Sourcepub fn health(&self) -> Option<&HealthChecker>
pub fn health(&self) -> Option<&HealthChecker>
Get health checker
Sourcepub fn config(&self) -> &ObservabilityConfig
pub fn config(&self) -> &ObservabilityConfig
Get configuration
Auto Trait Implementations§
impl Freeze for ObservabilityStack
impl !RefUnwindSafe for ObservabilityStack
impl Send for ObservabilityStack
impl Sync for ObservabilityStack
impl Unpin for ObservabilityStack
impl !UnwindSafe for ObservabilityStack
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