Releases: bugsnag/bugsnag-go
v2.1.0
v2.0.0
The v2 release adds support for Go modules, removes web framework
integrations from the main repository, and supports library configuration
through environment variables.
The new module is available via:
import "github.com/bugsnag/bugsnag-go/v2"
Breaking Changes
- The minimum supported Go version is now go1.11
- Removed
Configuration.Endpoint
. UseConfiguration.Endpoints
instead. For
more info and an example, see the Upgrading guide - Web framework integrations have been moved to separate repositories:
- bugsnag-go-gin
- bugsnag-go-negroni
- bugsnag-go-revel
- The
martini
framework integration has been retired
bugsnag.VERSION
has been renamedbugsnag.Version
Enhancements
- Support configuring Bugsnag through environment variables
- Support reporting panics caused by overflowing the stack
v1.9.0
v1.8.0
Enhancements
-
Support unwrapping the underlying causes from an error, including attached stack trace contents if available.
Any reported error which implements the following interface:
type errorWithCause interface { Unwrap() error }
will have the cause included as a previous error in the resulting event. The cause information will be available on the Bugsnag dashboard and is available for inspection in callbacks on the
errors.Error
object.bugsnag.OnBeforeNotify(func(event *bugsnag.Event, config *bugsnag.Configuration) error { if event.Error.Cause != nil { fmt.Printf("This error was caused by %v", event.Error.Cause.Error()) } return nil })
v1.7.0
v1.6.0
Enhancements
-
Extract stacktrace contents on errors wrapped by
pkg/errors
.
#144 -
Support modifying an individual event using a callback function argument.
bugsnag.Notify(err, func(event *bugsnag.Event) { event.ErrorClass = "Unexpected Termination" event.MetaData.Update(loadJobData()) if event.Stacktrace[0].File = "mylogger.go" { event.Stacktrace = event.Stacktrace[1:] } })
The stack trace of an event is now mutable so frames can be removed or modified.
#146
Bug fixes
- Send web framework name with severity reason if set. Previously this value was ignored, obscuring the severity reason for failed web requests captured by bugsnag middleware.
#143
v1.5.4
v1.5.3
This release adds runtime version data to the report and session payloads, which will show up under the Device tab in the Bugsnag dashboard.
Enhancements
v1.5.2
This release adds "access_token"
to the default list of keys to filter and introduces filtering of URL query parameters under the request tab.
Enhancements
- Adds filtering of URL parameters in the request tab of an event. Additionally adds
access_token
to theParamsFilters
by default.
#117
Adam Renberg Tamm - Ignore Gin unit tests when running against the latest version of Gin on Go 1.7 as Gin has dropped support for Go 1.6 and Go 1.7.
#118