Labels: enhancement, observability
Priority: Low
Estimated Time: 1.5 hours
Description:
backend/src/tracing_sampling.rs presumably applies a fixed or configured sampling rate, but under traffic spikes, a fixed rate could overwhelm the tracing backend, while under low traffic it may under-sample interesting events.
Tasks:
- Add an adaptive sampling rate that scales inversely with current request volume
- Always sample requests that result in an error, regardless of rate
- Add tests for adaptive rate adjustment under simulated load
- Document the adaptive strategy in
docs/architecture.md
Labels:
enhancement,observabilityPriority: Low
Estimated Time: 1.5 hours
Description:
backend/src/tracing_sampling.rspresumably applies a fixed or configured sampling rate, but under traffic spikes, a fixed rate could overwhelm the tracing backend, while under low traffic it may under-sample interesting events.Tasks:
docs/architecture.md