telemetry

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTelemetry

func InitTelemetry(name string, version string)

func SetAccountId

func SetAccountId(accountId string)

func TrackCommandLifecycle added in v0.46.0

func TrackCommandLifecycle(commandName string) func()

TrackCommandLifecycle creates a telemetry tracking wrapper for command execution. It tracks the start event immediately and returns a cleanup function that tracks the end event. Usage:

func myCommand(c *cli.Context) error {
    defer TrackCommandLifecycle("my-command")()
    // ... command implementation
}

func TrackEvent

func TrackEvent(ctx telemetry.EventContext, extraProperties map[string]interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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