Expand description
Observability infrastructure for Attuned.
This module provides:
- Structured logging with
tracing - Metrics collection
- Health check primitives
- Audit event types
§Quick Start
ⓘ
use attuned_core::telemetry::{init_tracing, TracingConfig};
fn main() {
let _guard = init_tracing(TracingConfig::default());
// All Attuned operations now emit traces
}Modules§
- metric_
names - Metric names used by Attuned.
- span_
names - Span names used by Attuned.
Structs§
- Audit
Event - Audit event for tracking state mutations.
- Component
Health - Health status of a single component.
- Health
Status - Overall system health status.
- Otel
Config - Configuration for OpenTelemetry export.
- Telemetry
Builder - Builder for configuring telemetry.
- Telemetry
Guard - Guard that flushes telemetry on drop.
- Tracing
Config - Configuration for tracing/logging.
Enums§
- Audit
Event Type - Audit event types for state mutations.
- Health
State - Health status of a component.
- Tracing
Format - Tracing output format.
Traits§
- Health
Check - Trait for components that can report their health.
Functions§
- init_
tracing - Initialize tracing with the given configuration.
- init_
tracing_ from_ env - Initialize tracing with environment-based configuration.