sentry

package
v0.0.0-...-a420e69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndInstallSentryClient

func CreateAndInstallSentryClient(ctx context.Context, env string, dsn string) context.Context

CreateAndInstallSentryClient installs a Sentry client to the supplied context. If an empty dsn is provided, the installed client will be nil.

func PanicHandler

func PanicHandler() martini.Handler

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

func ReportError(ctx context.Context, err error)

ReportError logs an error to Sentry if a sentry client is installed in the context. Logs to standard logger otherwise.

func ReportMessage

func ReportMessage(ctx context.Context, msg string)

ReportMessage logs a message to Sentry if a sentry client is installed. Logs to standard logger otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL