Versions in this module Expand all Collapse all v0 v0.2.0 Jun 12, 2026 Changes in this version + const DefaultHostname + const EnvDoNotTrack + const EnvTelemetry + func SetErrorHandler(handler func(error)) + func WithTelemetry(ctx context.Context, tel *Telemetry) context.Context + type CommandInfo struct + Command string + Debug bool + DryRun bool + JSON bool + Profile *profile.Profile + type Config struct + DeviceID string + ErrWriter io.Writer + Hostname string + IsTTY bool + ProfileTelemetry string + Version string + type Mode int + const ModeDisabled + const ModeEnabled + const ModeLog + func ResolveMode(profileTelemetry string) Mode + func (m Mode) String() string + type Telemetry struct + func FromContext(ctx context.Context) *Telemetry + func Init(ctx context.Context, cfg Config) *Telemetry + func (t *Telemetry) Mode() Mode + func (t *Telemetry) Shutdown(ctx context.Context, exitStatus int) error + func (t *Telemetry) StartCommand(ctx context.Context, info CommandInfo) context.Context + func (t *Telemetry) StartNetwork(ctx context.Context, name string, req *http.Request) (context.Context, trace.Span)