Skip to main content

Crate kmp_observability

Crate kmp_observability 

Source

Re-exports§

pub use metrics::KernelMetrics;

Modules§

metrics
quality_observers
Adapters for the QualityMetricsObserver domain port.

Structs§

BufferedQualityMetricsObserver
Implements QualityMetricsObserver over a bounded fail-open channel.
EmbeddedTelemetryGuard
Owns a runtime-neutral telemetry worker and closes it without requiring senders to disconnect first.
ObservabilityGuard
Resources returned by init_observability for lifecycle management.
OtlpObservabilityQueryAdapter
Maps an OTLP-compatible backend’s query API onto the application port. Values retain backend-provided unit, scope and exemplars; this adapter derives neither health scores nor causal links.
OtlpQueryResponse
Query response produced by a concrete telemetry backend (Prometheus, Tempo, vendor API, etc.) over data originally exported with OTLP.
QualityTelemetryObservation
One typed, timestamped quality observation persisted by local telemetry.

Traits§

OtlpMetricsQueryClient

Functions§

init_observability
Initializes structured logging with optional OpenTelemetry trace and metric export.
shutdown_observability
Shuts down the OpenTelemetry providers, flushing pending data.