Expand description
Service Level Objectives (SLOs) for workspace index operations.
This module defines performance targets and monitoring infrastructure for critical workspace index operations. SLOs provide measurable quality targets for production deployments.
§SLO Targets
- Index Initialization: <5s for 10K files (P95)
- Incremental Update: <100ms for single file change (P95)
- Definition Lookup: <50ms (P95)
- Completion: <100ms (P95)
- Hover: <50ms (P95)
§Performance Monitoring
- Latency tracking with percentiles (P50, P95, P99)
- Error rate monitoring
- Throughput metrics
- SLO compliance reporting
§Usage
use perl_workspace_index_slo::{SloConfig, SloTracker};
use perl_workspace_index_slo::{OperationResult, OperationType};
let config = SloConfig::default();
let tracker = SloTracker::new(config);
let start = tracker.start_operation(OperationType::DefinitionLookup);
// ... perform operation ...
tracker.record_operation(start, OperationResult::Success);Structs§
- SloConfig
- SLO configuration for workspace index operations.
- SloStatistics
- SLO statistics for a specific operation type.
- SloTracker
- SLO tracker for workspace index operations.
Enums§
- Operation
Result - Result of an SLO operation.
- Operation
Type - Operation types tracked by SLO monitoring.