Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTelemetry ¶
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.
Click to show internal directories.
Click to hide internal directories.