Categorygithub.com/bugsnag/bugsnag-go
modulepackage
2.5.1+incompatible
Repository: https://github.com/bugsnag/bugsnag-go.git
Documentation: pkg.go.dev

# README

SmartBear BugSnag logo

Error monitoring and reporting for Go

Documentation Go Reference Build status

Automatically detect crashes and report errors in your Go apps. Get alerts about errors and panics in real-time, including detailed error reports with diagnostic information. Understand and resolve issues as fast as possible.

Learn more about BugSnag's Go error monitoring and error reporting solution.

Features

  • Automatically report unhandled errors and panics
  • Report handled errors
  • Attach user information to determine how many people are affected by a crash
  • Send customized diagnostic data

Getting Started

  1. Create a BugSnag account
  2. Complete the instructions in the integration guide for your framework:
  3. Relax!

Support

Contributing

All contributors are welcome! For information on how to build, test and release bugsnag-go, see our contributing guide.

License

The BugSnag error reporter for Go is free software released under the MIT License. See LICENSE.txt for details.

# Packages

No description provided by the author
Package errors provides errors that have stack-traces.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package bugsnagmartini provides a martini middleware that sends panics to Bugsnag.
No description provided by the author
Package bugsnagrevel adds Bugsnag to revel.
No description provided by the author
Package testutil can be .-imported to gain access to useful test functions.

# Functions

AttachRequestData returns a child of the given context with the request object attached for later extraction by the notifier in order to automatically record request data.
AutoNotify logs a panic on a goroutine and then repanics.
Configure Bugsnag.
Handler creates an http Handler that notifies Bugsnag any panics that happen.
HandlerFunc creates an http HandlerFunc that notifies Bugsnag about any panics that happen.
New creates a new notifier.
Notify sends an error.Error to Bugsnag along with the current stack trace.
OnBeforeNotify adds a callback to be run before a notification is sent to Bugsnag.
Recover logs a panic on a goroutine and then recovers.
StartSession creates new context from the context.Context instance with Bugsnag session data attached.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VERSION defines the version of this Bugsnag notifier.

# Variables

Config is the configuration for the default bugsnag notifier.
DefaultSessionPublishInterval defines how often sessions should be sent to Bugsnag.
Sets the severity of the error on Bugsnag.
Sets the severity of the error on Bugsnag.
Sets the severity of the error on Bugsnag.

# Structs

Configuration sets up and customizes communication with the Bugsnag API.
Context is the context of the error in Bugsnag.
Endpoints hold the HTTP endpoints of the notifier.
ErrorClass overrides the error class in Bugsnag.
Event represents a payload of data that gets sent to Bugsnag.
No description provided by the author
Notifier sends errors to Bugsnag.
RequestJSON is the request information that populates the Request tab in the dashboard.
The form of stacktrace that Bugsnag expects.
User represents the searchable user-data on Bugsnag.

# Type aliases

MetaData is added to the Bugsnag dashboard in tabs.
No description provided by the author