telemetry

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Init

func Init(configDir string)

func IsAllowed

func IsAllowed(cfg Config) bool

func SaveConfig

func SaveConfig(configDir string, cfg Config) error

func Track

func Track(event string, props map[string]any)

func TrackCommandFinish

func TrackCommandFinish(command string, durationMs int64, clean bool)

func TrackCommandRun

func TrackCommandRun(command, engine, stack string, modules []string, thin bool)

Types

type Config

type Config struct {
	Enabled     bool   `json:"enabled"`
	AnonymousID string `json:"anonymous_id"`
}

func Disable

func Disable(configDir string) (Config, error)

func Enable

func Enable(configDir string) (Config, error)

func LoadConfig

func LoadConfig(configDir string) Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL