Expand description
Traffic mirroring / shadowing for safe canary testing
This module implements fire-and-forget request duplication to shadow upstreams, enabling safe canary deployments and testing with production traffic.
§Features
- Sampling-based mirroring (percentage control)
- Header-based sampling (selective mirroring)
- Optional request body buffering
- Fire-and-forget async execution (no blocking)
- Comprehensive metrics
Structs§
- Shadow
Manager - Manager for traffic shadowing/mirroring
Functions§
- buffer_
request_ body - Buffer request body from session with size limits
- clone_
body_ for_ shadow - Clone request body bytes for shadow traffic
- should_
buffer_ method - Helper to determine if HTTP method should have body buffered