sentry

package
v0.0.0-...-2af5034 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error, tags map[string]string)

func GetClient

func GetClient() *raven.Client

Return our global Sentry client, or nil if none was configured.

func Message

func Message(str string, tags map[string]string)

func Warningf

func Warningf(msgfmt string, args ...interface{})

Warningf takes a format string and arguments with the same meaning as with fmt.Printf and sends the message as a warning to Sentry if Sentry is configured. It makes a best-effort attempt to process the arguments to ensure that Sentry buckets the warning by the format string rather than by the specific values of the arguments.

Types

type NoisyTransport

type NoisyTransport struct {
	// contains filtered or unexported fields
}

func (*NoisyTransport) Send

func (nt *NoisyTransport) Send(url, authHeader string, packet *raven.Packet) error

By default Sentry quietly drops errors and it is awkward to retrieve them at reporting sites, so this wraps the Transport to log any errors encountered.

Jump to

Keyboard shortcuts

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