Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Optional pluggable sinks that receive the same redacted IngestExportBatch as Kaizen sync. Fan-out runs in parallel with the primary POST (see sync::engine); outbox is committed only when the primary succeeds (and, when fail_open is false, when the fan-out completes Ok).

Modules§

datadog
Datadog Logs API exporter (docs).

Structs§

DatadogResolved
Effective Datadog settings after env overlay. app_key is required for query/pull (Logs Search API v2) but not for log intake; we keep it optional and surface a clear error in pull when missing.
ExporterRegistry
Built from TelemetryConfig via load_exporters. Empty is a no-op.
FileExporter
OtlpResolved
Effective OTLP push endpoint.
PostHogResolved
Effective PostHog settings after env overlay.

Traits§

TelemetryExporter
Third-party and OTel sinks use the same batch types as the HTTP ingest.

Functions§

default_ndjson_path
Default: ~/.kaizen/projects/<slug>/telemetry.ndjson.
load_exporters
Build exporters from TOML + environment. Missing creds for a sink log a warning and skip it. workspace resolves relative file paths (see resolve_file_exporter_path).
resolve_file_exporter_path
telemetry_file_line
One NDJSON object per batch. emitted_at_ms set at file write in super::file::FileExporter.