Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

kaizen telemetry subcommands: configure, print-effective, doctor, pull, push, schema.

Structs§

ConfigureOptions

Functions§

cmd_telemetry_configure
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).
cmd_telemetry_doctor
Resolve config, run provider health when available, show redacted exporter view.
cmd_telemetry_init
Alias of cmd_telemetry_configure.
cmd_telemetry_print_effective
cmd_telemetry_print_schema
Example JSON for canonical per-item export names (ingest + third-party mappers).
cmd_telemetry_pull
Run one page of pull and refresh remote_pull_state (payload import when APIs are wired).
cmd_telemetry_push
Replay stored events in a trailing window through configured telemetry exporters (no Kaizen POST).
cmd_telemetry_test
Send one synthetic redacted event through every configured exporter, report ok/fail per sink. Pure observability: no SQLite read, no outbox enqueue, no Kaizen POST.
print_effective_config_text
Redacted: show which env/Toml fields are visible for telemetry sinks.