airbrake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.3.5

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

Handler reports errors to airbrake

func NewAirbrakeHandler

func NewAirbrakeHandler(airbrakeNotifier *githubairbrake.Notifier) *Handler

NewAirbrakeHandler returns a new instance of AirbrakeHandler

func (*Handler) ReportError added in v0.3.5

func (a *Handler) ReportError(r *http.Request, err error)

ReportError dispatches errors for incoming requests

func (*Handler) ReportLogMessage added in v0.3.5

func (a *Handler) ReportLogMessage(logType logrus.LogType, message string, err error, logInfo logrus.LogInfo)

ReportLogMessage log message to airbrake

func (*Handler) WithReporting added in v0.3.5

func (a *Handler) WithReporting(next http.Handler) http.Handler

WithReporting dispatches 5xx messages with some metadata to airbrake if notifier is configured

Jump to

Keyboard shortcuts

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