Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndInstallSentryClient ¶
CreateAndInstallSentryClient installs a Sentry client to the supplied context. If an empty dsn is provided, the installed client will be nil.
func PanicHandler ¶
PanicHandler intercepts panic's from request handlers and sends them to Sentry. Exception is re-panic'd to be handled up the chain.
func ReportError ¶
ReportError logs an error to Sentry if a sentry client is installed in the context. Logs to standard logger otherwise.
func ReportMessage ¶
ReportMessage logs a message to Sentry if a sentry client is installed. Logs to standard logger otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.