Documentation
¶
Index ¶
- func CaptureException(err error, tags map[string]string, extra map[string]interface{})
- func CaptureMessage(message string, level sentry.Level, tags map[string]string)
- func Close()
- func EndCommand(command string, success bool, duration time.Duration)
- func Initialize(segmentWriteKey, sentryDSN string)
- func StartCommand(command string)
- func StartTransaction(name, operation string) *sentry.Span
- func Track(event string, properties map[string]interface{})
- func TrackCommand(command string, duration time.Duration, success bool)
- func TrackError(err error, command string, properties map[string]interface{})
- func WrapCommand(cmd *cobra.Command, originalRun func(cmd *cobra.Command, args []string) error)
- func WrapCommandNoError(cmd *cobra.Command, originalRun func(cmd *cobra.Command, args []string))
- type Client
- func (c *Client) CaptureException(err error, tags map[string]string, extra map[string]interface{})
- func (c *Client) CaptureMessage(message string, level sentry.Level, tags map[string]string)
- func (c *Client) Close()
- func (c *Client) EndCommand(command string, success bool, duration time.Duration)
- func (c *Client) StartCommand(command string)
- func (c *Client) StartTransaction(name, operation string) *sentry.Span
- func (c *Client) Track(event string, properties map[string]interface{})
- func (c *Client) TrackCommand(command string, duration time.Duration, success bool)
- func (c *Client) TrackError(err error, command string, properties map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureException ¶
CaptureException captures an exception with additional context
func CaptureMessage ¶
CaptureMessage captures a message with additional context
func EndCommand ¶
EndCommand ends tracking a command for release health
func Initialize ¶
func Initialize(segmentWriteKey, sentryDSN string)
Initialize sets up the global telemetry client
func StartCommand ¶
func StartCommand(command string)
StartCommand starts tracking a command for release health
func StartTransaction ¶
StartTransaction starts a Sentry transaction for performance monitoring
func TrackCommand ¶
TrackCommand tracks command execution
func TrackError ¶
TrackError tracks errors
func WrapCommand ¶
WrapCommand wraps a cobra command with telemetry tracking
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CaptureException ¶
CaptureException captures an exception with additional context
func (*Client) CaptureMessage ¶
CaptureMessage captures a message with additional context
func (*Client) EndCommand ¶
EndCommand ends tracking a command execution
func (*Client) StartCommand ¶
StartCommand starts tracking a command execution for release health
func (*Client) StartTransaction ¶
StartTransaction starts a Sentry transaction for performance monitoring