Skip to content

Latest commit

 

History

History
403 lines (264 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

403 lines (264 loc) · 12.3 KB

Changelog

2.4.0 (2024-04-15)

Enhancements

2.3.1 (2024-03-18)

Bug fixes

  • Handle empty pointers to complex structs in metadata.Add #221

2.3.0 (2024-03-05)

Bug fixes

  • Start showing inlined functions in stack trace #208

  • Handle complex structs in metadata #215 Chris Duncan

  • Stop trimming everything before "main.go" on main packages #217 Chris Duncan

2.2.1 (2022-02-21)

Bug fixes

  • Fix middleware panic on nil *http.Request #212

2.2.0 (2022-10-12)

Enhancements

Bug fixes

  • Replace the gofrs/uuid dependency to maintain support for older versions of Go #196

1.9.1 (2022-10-12)

Bug fixes

  • Replace the gofrs/uuid dependency to maintain support for older versions of Go #196

2.1.2 (2021-08-24)

Enhancements

  • Update panicwrap dependency to v1.3.4 which fixes build support for linux & darwin arm64.

2.1.1 (2021-04-19)

Enhancements

  • Update panicwrap dependency to 1.3.2, adding support for darwin arm64

2.1.0 (2021-01-27)

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.

2.0.0 (2021-01-18)

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

  • 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

1.9.0 (2021-01-05)

Enhancements

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

1.8.0 (2020-12-03)

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
    })

1.7.0 (2020-11-18)

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
    })

1.6.0 (2020-11-12)

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

1.5.4 (2020-10-28)

Bug fixes

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

1.5.3 (2019-07-11)

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

1.5.2 (2019-05-20)

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

1.5.1 (2019-04-15)

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

1.5.0 (2019-03-26)

Enhancements

  • Testing improvements #105
    • Only run full test suite on PRs targeting master
    • Test against the latest release of go (currently 1.12) rather than go's unstable master branch
  • App engine has not been supported for a while. This release removes the app engine-specific code and tests from the codebase #109.

1.4.1 (2019-03-18)

This release fixes a compilation error on Windows. Due to a missing implementation in the Go library, Windows users may have to send two interrupt signals to interrupt the application. Other signals are unaffected.

Additionally, ensure data sanitisation behaves the same for both request data and metadata.

Bug fixes

  • Use the os package instead of syscall to re-send signals, as syscall varies per platform, which caused a compilation error.

  • Make sure that all data sanitization using Config.ParamsFilters behaves the same. #104 Adam Renberg Tamm

1.4.0 (2018-11-19)

This release is a big non-breaking revamp of the notifier. Most importantly, this release introduces session tracking to Go applications.

As of this release we require that you use Go 1.7 or higher.

Features

  • Session tracking to be able to show a stability score in the dashboard. Automatic recording of sessions for net/http, gin, revel, negroni and martini. Automatic capturing of sessions can be disabled using the AutoCaptureSessions configuration parameter.
  • Automatic recording of HTTP request information such as HTTP method, headers, URL and query parameters.

Enhancements

  • Migrate report payload version from 3 to 4.
  • Improve test coverage and introduce maze runner tests. Simplify integration tests for Negroni, Gin and Martini.
  • Deprecate the use of the old Endpoint configuration parameter, and allow users of on-premise to configure both the notify endpoint and the sessions endpoint.
  • bugsnag.Notify() now accepts a context.Context object, generally from *http.Request's r.Context(), which Bugsnag can extract session and request information from.
  • Improve and augment examples (bugsnag_example_test.go) for documentation.
  • Improve example applications (examples/ directory) to get up and running faster.
  • Clarify and improve GoDocs.
  • Improved serialization performance and safety of the report payload.
  • Filter HTTP headers based on the FiltersParams.
  • Revel enhancements:
    • Ensure all non-code configuration options are configurable from config file.
    • Stop using deprecated logger.
    • Attempt to configure a what we can from the revel configuration options.
  • Make NotifyReleaseStages work consistently with other notifiers, both for sessions and for reports.
  • Also filter out 'authorization' and 'cookie' by default, to match other notifiers.

Bug fixes

  • Address compile errors test failures that failed the build.
  • Don't crash when calling bugsnag.Notify(nil)
  • Other minor bug fixes that came to light after improving test coverage.

1.3.2 (2018-10-05)

Bug fixes

  • Ensure error reports for fatal crashes gets sent #77

1.3.1 (2018-03-14)

Bug fixes

1.3.0 (2017-10-02)

Enhancements

  • Track whether an error report was captured automatically
  • Add SourceRoot as a configuration option, defaulting to $GOPATH

1.2.2 (2017-08-25)

Bug fixes

  • Point osext dependency at upstream, update with fixes

1.2.1 (2017-07-31)

Bug fixes

  • Improve goroutine panic reporting by sending reports synchronously in the case that a goroutine is about to be cleaned up #52

1.2.0 (2017-07-03)

Enhancements

Bug fixes

1.1.1 (2016-12-16)

Bug fixes

  • Replace empty error class property in reports with "error"

1.1.0 (2016-11-07)

Enhancements

1.0.5

Bug fixes

  • Avoid swallowing errors which occur upon delivery

1.0.4

  • Fix appengine integration broken by 1.0.3

1.0.3

  • Allow any Logger with a Printf method.

1.0.2

  • Use bugsnag copies of dependencies to avoid potential link rot

1.0.1

  • gofmt/golint/govet docs improvements.

1.0.0