Documentation
¶
Overview ¶
Package bugsnag provides Bugsnag integration.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is responsible for sending errors to Bugsnag.
func New ¶
New creates a new handler.
Example ¶
package main
import (
bugsnaghandler "emperror.dev/handler/bugsnag"
)
func main() {
apiKey := "key"
_ = bugsnaghandler.New(apiKey)
}
func NewFromNotifier ¶
NewFromNotifier creates a new handler from an existing notifier instance.
Example ¶
apiKey := "key"
_ = bugsnaghandler.NewFromNotifier(bugsnag.New(bugsnag.Configuration{
APIKey: apiKey,
}))
Click to show internal directories.
Click to hide internal directories.