telemetry

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(statePath string) *Client

func (*Client) Emit

func (c *Client) Emit(event Event) <-chan struct{}

func (*Client) Resolve

func (c *Client) Resolve(overrides Overrides, commandPath string, counted bool) (Decision, error)

Resolve applies run-time overrides before the persisted choice. counted reports whether the command being run is one whose execution is tracked (in mapt: a leaf command that actually runs, not a group showing help); uncounted commands never notify, never persist, and never emit.

func (*Client) Wait

func (c *Client) Wait(done <-chan struct{}, timeout time.Duration)

type Decision

type Decision struct {
	Enabled   bool
	InstallID string
}

type Event

type Event struct {
	InstallID string
	Version   string
	Command   string
}

type Overrides

type Overrides struct {
	DoNotTrack   string
	MapTelemetry string
	NoTelemetry  bool
}

func ReadOverrides

func ReadOverrides(noTelemetry bool) Overrides

Jump to

Keyboard shortcuts

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