track

package
v0.0.0-...-66c9f5b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracker interface {
	Track(string, ...Property) error
}

Functions

func Cmd

func Cmd(cmd *cobra.Command, verb string, props ...Property)

Cmd sends a tracking event for a Cobra command and its arguments.

func Evt

func Evt(name string, props ...Property)

Evt sends a tracking event to the server in a separate goroutine. This function can take in optional key-value pairs which is a type called Property.

Example:

client := "vscode"
track.Evt("MCP Setup Client:", track.P("client", client))

func FlushAllTracking

func FlushAllTracking()

FlushAllTracking waits for all tracking goroutines to complete.

Types

type Property

type Property = client.Property

func P

func P(name string, value any) Property

P creates a Property with the given name and value.

Jump to

Keyboard shortcuts

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