Skip to main content

Module capture

Module capture 

Source
Expand description

Telemetry capture kill-switch.

DIFFLORE_CAPTURE=false stops local fire-and-forget rows from entering any cloud outbox. Every capture-emitting entry point checks this gate before opening pools or building payloads.

Both cloud queues must honor the gate:

  • crate::cloud::outbox::OutboxQueue::enqueue — the original cloud_outbox SQLite queue.
  • [crate::cloud::observations::storage::ObservationEmitter::enqueue] — the second observation_events queue added for PostToolUse observation capture.

When disabled, no row enters either queue and later drain passes have nothing to upload.

Constants§

DIFFLORE_CAPTURE_ENV
Env var documented as the telemetry capture kill-switch.

Functions§

capture_enabled
Whether telemetry capture is enabled.