Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(version string) func()
Init initializes Sentry if telemetry is enabled. Returns a cleanup function that flushes buffered events.
func ResolveCommandName ¶
ResolveCommandName extracts the subcommand name from os.Args. Returns the first non-flag argument after the binary name, or "root" if none.
func StartCommand ¶
StartCommand begins a Sentry transaction for a CLI command. Returns a context carrying the transaction and a finish function. The finish function captures errors, emits metrics, and ends the transaction.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.