pub trait TelemetryProvider: Send + Sync {
// Required method
fn init(&self, cfg: &ObservabilityConfig) -> OtlpGuard;
}Expand description
Overridable telemetry seam.
init is handed the full ObservabilityConfig and returns the live
OtlpGuard. The built-in DefaultOtlpProvider implements the
reqwest/HTTP-protobuf batched exporter; BlackLeaf-internal builds register an
alternative (e.g. the private zlogging SDK) via set_telemetry_provider.
Required Methods§
Sourcefn init(&self, cfg: &ObservabilityConfig) -> OtlpGuard
fn init(&self, cfg: &ObservabilityConfig) -> OtlpGuard
Install telemetry forwarding and return its lifetime guard.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".