telemetry-events
Installation
SKILL.md
Adding telemetry events
The CLI has two telemetry types in internal/telemetry/:
*telemetry.Collector— thread-safe event queue. Method:Record(event string, props map[string]any). This is what you pass into internal packages.*telemetry.Telemetry— orchestrator that holds a Collector + Sender + StatsRoundTripper, and is responsible forFlush()at process exit. Used at the cmd layer.
Two package-level vars are set up in cmd/rwx/root.go:
var (
telem *telemetry.Telemetry // top-level, for cmd/rwx/*.go
telemetryCollector *telemetry.Collector // pass into internal packages
)
Event naming
Use dotted <area>.<action> names. Existing events: