pub struct TelemetryBuilder { /* private fields */ }Expand description
Builder for configuring telemetry.
Implementations§
Source§impl TelemetryBuilder
impl TelemetryBuilder
Sourcepub fn with_tracing(self, config: TracingConfig) -> Self
pub fn with_tracing(self, config: TracingConfig) -> Self
Configure tracing.
Sourcepub fn with_opentelemetry(self, config: OtelConfig) -> Self
pub fn with_opentelemetry(self, config: OtelConfig) -> Self
Configure OpenTelemetry export.
Sourcepub fn with_metrics(self) -> Self
pub fn with_metrics(self) -> Self
Enable metrics collection.
Sourcepub fn init(self) -> TelemetryGuard
pub fn init(self) -> TelemetryGuard
Initialize all configured telemetry.
Trait Implementations§
Source§impl Default for TelemetryBuilder
impl Default for TelemetryBuilder
Source§fn default() -> TelemetryBuilder
fn default() -> TelemetryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryBuilder
impl RefUnwindSafe for TelemetryBuilder
impl Send for TelemetryBuilder
impl Sync for TelemetryBuilder
impl Unpin for TelemetryBuilder
impl UnwindSafe for TelemetryBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more