Documentation
¶
Overview ¶
Package bugsnag provides Bugsnag integration.
Bugsnag recommends to create a global scope error handler. Although that works, makes writting software harder, so this package recommends creating a separate instance:
APIKey := "key" handler := bugsnag.NewHandler(APIKey)
If you need access to the underlying Notifier instance (or need more advanced construction), you can access it from the handler:
handler.Notifier.Config.AppVersion = "1.0.0"
Bugsnag provides an extensive set of configuration options, so it might make sense to manually construct it:
// Note: there is a conflict in package names which we resolved with the "_" (underline) prefix. handler := &_bugsnag.Handler { Notifier: bugsnag.New(bugsnag.Configuration{ APIKey: APIKey, Synchronous: 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.