Documentation
¶
Overview ¶
Package telemetry sends anonymous usage events to PostHog when the user has opted in. Call Init early, Track per event, and Close before exit.
Index ¶
- func Close()
- func Init(configDir string)
- func IsAllowed(cfg Config) bool
- func SaveConfig(configDir string, cfg Config) error
- func Track(event string, props map[string]any)
- func TrackCommandFinish(command string, durationMs int64, clean bool)
- func TrackCommandRun(command, engine, stack string, modules []string, thin bool)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(configDir string)
Init loads telemetry config and opens the PostHog client if allowed.
func SaveConfig ¶
func TrackCommandFinish ¶
func TrackCommandRun ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.