Documentation ¶
Overview ¶
Package airbrake provides Airbrake integration.
Create a new handler as you would create a gobrake.Notifier:
projectID := int64(1) projectKey := "key" handler := airbrake.NewHandler(projectID, projectKey)
If you need access to the underlying Notifier instance (or need more advanced construction), you can access it from the handler:
handler.Notifier.SetHost("https://errbit.domain.com")
By default Gobrake sends errors asynchronously and expects to be closed before the program finishes:
func main() { defer handler.Close() }
If you want to Flush notices you can do it as you would with Gobrake's notifier or you can configure the handler to send notices synchronously:
handler.SendSynchronously = true
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.