Documentation
¶
Overview ¶
Package telemetry records opt-in, aggregate operational metrics about destructive operations: per-op counts, success/error tallies, and total duration. It plugs into the same audit.Auditor seam as the audit log, so it adds no new interception point in the app layer.
Privacy: telemetry deliberately records ONLY the operation name, outcome, and duration — never profile names, hosts, dump IDs, actor, or any data. It is off by default and must be explicitly enabled in config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder is an audit.Auditor sink that accumulates aggregate counters and flushes them to a JSON file. Safe for concurrent use.
func NewRecorder ¶
NewRecorder returns a telemetry Recorder that flushes aggregates to path (created on first flush), or nil if path is empty.