The Debug Mode Feature Flag
Most teams reach for log-level changes in incidents. A debug-mode feature flag is safer and faster.
The idea
A feature flag enables debug-level logging for specific traces or users.
Triggered per request via header or per user via flag-platform rule.
Why safer
Bounded: only specific requests/users. Blast radius is contained.
Reversible: turn off the flag; debug logging stops immediately.
vs log-level changes
Log-level change affects all traffic. Massive cost spike; potential storage overrun.
Debug flag affects 0.1% of traffic. Cost is negligible; effect is targeted.