Skip to main content

Module CaptureAllowed

Module CaptureAllowed 

Source
Expand description

Capture gate. Combines the compile-time debug_assertions check with the master telemetry kill switch (Capture) and the per-pipe Report toggle, both baked at build time. Cheap early-exit consulted by every PostHog capture path.

Pair: the OTLP pipe in IPC::DevLog::EmitOTLPSpan runs the same Capture master + its own OTLPEnabled toggle. The Capture knob is distinct from .env.Land.Diagnostics’s Disable, which kills polyfills/shims (not telemetry).

Functions§

Fn