Skip to content

Releases: bugsnag/bugsnag-go

v2.1.0

27 Jan 14:59
Compare
Choose a tag to compare

Enhancements

  • Support appending metadata through environment variables prefixed with BUGSNAG_METADATA_

Bug fixes

  • Fix GOPATH, SourceRoot and project package path stripping from stack traces on Windows by using the correct path separators.

v2.0.0

18 Jan 16:50
97573c2
Compare
Choose a tag to compare

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. Use Configuration.Endpoints instead. For
    more info and an example, see the Upgrading guide
  • Web framework integrations have been moved to separate repositories:
  • bugsnag.VERSION has been renamed bugsnag.Version

Enhancements

  • Support configuring Bugsnag through environment variables
  • Support reporting panics caused by overflowing the stack

v1.9.0

05 Jan 12:14
737ff3f
Compare
Choose a tag to compare

Enhancements

  • Support capturing "fatal error"-style panics from go, such as from concurrent
    map read/writes, out of memory errors, and nil goroutines.

v1.8.0

03 Dec 13:57
946ab52
Compare
Choose a tag to compare

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

18 Nov 15:21
ae90a17
Compare
Choose a tag to compare

Enhancements

  • Support for changing the handled-ness of an event prior to delivery. This
    allows for otherwise handled events to affect a project's stability score.

    bugsnag.Notify(err, func(event *bugsnag.Event) {
      event.Unhandled = true
    })

v1.6.0

12 Nov 11:32
fed1d4e
Compare
Choose a tag to compare

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

28 Oct 16:03
dab6c26
Compare
Choose a tag to compare

Bug fixes

  • Account for inlined frames when unwinding stack traces by using
    runtime.CallersFrames.
    #114
    #140

v1.5.3

11 Jul 12:51
3b0dbb7
Compare
Choose a tag to compare

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

  • Ignore Gin unit tests when running against the latest version of Gin on Go versions below 1.10 as Gin has dropped support for these versions.
    #121
  • Introduce runtime version data to the report and session payloads. Additionally adds the OS name to reports.
    #122

v1.5.2

20 May 09:19
ab96e50
Compare
Choose a tag to compare

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 the ParamsFilters 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

v1.5.1

16 Apr 09:09
f13f7c6
Compare
Choose a tag to compare

This release re-introduces prioritizing user specified error classes over the inferred error class.

Bug fixes

Fixes a bug introduced in v1.4.0 where bugsnag.Notify(err, bugsnag.ErrorClass{Name: "MyCustomErrorClass"}) is not respected. #115