Skip to main content

cmd_telemetry_configure

Function cmd_telemetry_configure 

Source
pub fn cmd_telemetry_configure(
    workspace: Option<&Path>,
    options: ConfigureOptions,
) -> Result<()>
Expand description

Validating wizard: prompt for missing creds (or read from env / flags), health-check the resolved provider before touching ~/.kaizen/config.toml, then append the exporter, idempotently set [telemetry.query].provider so pull works without extra config, and ensure a redaction salt exists. Failure to validate aborts with a clear error and writes nothing. Re-running for the same exporter type + key field is a no-op (no duplicate row).