telemetry

package
v0.11.421 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptOut       = false
	AppVersion   = ""
	RunID        = ""
	TemplateName = "" // Stores template name for init command (protected by lock)

)
View Source
var TelemetryKey string

Functions

func AfterCommand

func AfterCommand(ctx context.Context, cmd *cli.Command) error

func BeforeCommand

func BeforeCommand(ctx context.Context, c *cli.Command) (context.Context, error)

func ErrorCommand

func ErrorCommand(ctx context.Context, cmd *cli.Command, err error) error

func Init

func Init() io.Closer

func SendEvent

func SendEvent(event string, properties analytics.Properties)

func SendEventWithAssetStats

func SendEventWithAssetStats(event string, stats map[string]int, cmd *cli.Command)

func SetTemplateName added in v0.11.420

func SetTemplateName(name string)

SetTemplateName stores the template name for telemetry (thread-safe).

Types

This section is empty.

Jump to

Keyboard shortcuts

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