Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiKey = "" Endpoint = "https://api.airbrake.io/notifier_api/v2/notices" Environment = "development" Verbose = false // PrettyParams allows including request query/form parameters on the Environment tab // which is more readable than the raw text of the Parameters tab (in Errbit). // The param keys will be rendered as "?<param>" so they will sort together at the top of the tab. PrettyParams = false )
Functions ¶
func CapturePanic ¶
func CapturePanicHandler ¶
func CapturePanicHandler(app http.HandlerFunc) http.HandlerFunc
CapturePanicHandler "middleware". Wraps the http handler so that all panics will be dutifully reported to airbrake
Example:
http.HandleFunc("/", airbrake.CapturePanicHandler(MyServerFunc))
Types ¶
Click to show internal directories.
Click to hide internal directories.