Documentation ¶
Overview ¶
Package sentry implements sending errors and messages to Sentry with proper aggregation. Sentry is crash reporting and aggregation platform, https://sentry.io
Index ¶
- func CaptureAndWait(packet *raven.Packet, tags map[string]string) string
- func CaptureErrorAndWait(message string, tags map[string]string, calldepth int, level raven.Severity) string
- func CaptureMessageAndWait(message string, tags map[string]string, calldepth int, iObject *raven.Message) string
- func Interface2Packet(message string, iObject raven.Interface, level raven.Severity) *raven.Packet
- func MustSetDSN(dsn string)
- func SetSEH(seh SentryErrorHandlerType)
- type SentryErrorHandlerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureAndWait ¶
func CaptureErrorAndWait ¶
func CaptureErrorAndWait(message string, tags map[string]string, calldepth int, level raven.Severity) string
CaptureErrorAndWait() sends message to Sentry and returns eventID Aggregating is done by stacktrace
func CaptureMessageAndWait ¶
func CaptureMessageAndWait(message string, tags map[string]string, calldepth int, iObject *raven.Message) string
CaptureMessageAndWait() sends message to Sentry and returns eventID Aggregating is done by iObject.Message attribute Additional info is filename and line number
func Interface2Packet ¶
func Interface2Packet(message string, iObject raven.Interface, level raven.Severity) *raven.Packet
func SetSEH ¶
func SetSEH(seh SentryErrorHandlerType)
Install handler to hook events when sending to Sentry failed
Types ¶
type SentryErrorHandlerType ¶
type SentryErrorHandlerType func(err error)
Handler type to hook events when sending to Sentry failed
var SentryErrorHandler SentryErrorHandlerType = nil
Click to show internal directories.
Click to hide internal directories.