Expand description
Telemetry Aggregation and Export
Collects and aggregates observability data for export to monitoring systems. Provides periodic snapshots and structured export formats.
§Features
- Periodic metric snapshots
- JSON export for external systems
- Performance counter aggregation
- Telemetry collection intervals
- Low-overhead sampling
§Usage
ⓘ
use embeddenator_obs::telemetry::{Telemetry, TelemetryConfig};
let config = TelemetryConfig::default();
let mut telemetry = Telemetry::new(config);
// Record operations
telemetry.record_operation("query", 1250); // microseconds
telemetry.increment_counter("cache_hits");
// Get snapshot for export
let snapshot = telemetry.snapshot();
println!("{}", snapshot.to_json());Structs§
- Operation
Stats - Statistics for a single operation type.
- Telemetry
- Main telemetry collector.
- Telemetry
Config - Telemetry aggregation configuration.
- Telemetry
Snapshot - Point-in-time telemetry snapshot.