Skip to content

Commit

Permalink
Release 2.2.0 / 1.9.1 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali authored Oct 12, 2022
1 parent bbd0ec4 commit 694009f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 2.2.0 (2022-10-12)

### Enhancements

* Support pkg/errors `Unwrap()` on `errors.Error` objects
[#194](https://github.com/bugsnag/bugsnag-go/pull/194)
[Jayce Pulsipher](https://github.com/jaycetde)

* Document double star glob patterns are available for `ProjectPackages`
subpackage names.
[#184](https://github.com/bugsnag/bugsnag-go/pull/184)
[Genta Kamitani](https://github.com/genkami)

### Bug fixes

* Replace the gofrs/uuid dependency to maintain support for older versions of Go
[#196](https://github.com/bugsnag/bugsnag-go/pull/196)

## 1.9.1 (2022-10-12)

### Bug fixes

* Replace the gofrs/uuid dependency to maintain support for older versions of Go
[#196](https://github.com/bugsnag/bugsnag-go/pull/196)

## 2.1.2 (2021-08-24)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion bugsnag.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

// VERSION defines the version of this Bugsnag notifier
const VERSION = "1.9.0"
const VERSION = "1.9.1"

var panicHandlerOnce sync.Once
var sessionTrackerOnce sync.Once
Expand Down
4 changes: 2 additions & 2 deletions payload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"github.com/bugsnag/bugsnag-go/sessions"
)

const expSmall = `{"apiKey":"","events":[{"app":{"releaseStage":""},"device":{"osName":"%s","runtimeVersions":{"go":"%s"}},"exceptions":[{"errorClass":"","message":"","stacktrace":null}],"metaData":{},"payloadVersion":"4","severity":"","unhandled":false}],"notifier":{"name":"Bugsnag Go","url":"https://github.com/bugsnag/bugsnag-go","version":"1.9.0"}}`
const expSmall = `{"apiKey":"","events":[{"app":{"releaseStage":""},"device":{"osName":"%s","runtimeVersions":{"go":"%s"}},"exceptions":[{"errorClass":"","message":"","stacktrace":null}],"metaData":{},"payloadVersion":"4","severity":"","unhandled":false}],"notifier":{"name":"Bugsnag Go","url":"https://github.com/bugsnag/bugsnag-go","version":"1.9.1"}}`

// The large payload has a timestamp in it which makes it awkward to assert against.
// Instead, assert that the timestamp property exist, along with the rest of the expected payload
const expLargePre = `{"apiKey":"166f5ad3590596f9aa8d601ea89af845","events":[{"app":{"releaseStage":"mega-production","type":"gin","version":"1.5.3"},"context":"/api/v2/albums","device":{"hostname":"super.duper.site","osName":"%s","runtimeVersions":{"go":"%s"}},"exceptions":[{"errorClass":"error class","message":"error message goes here","stacktrace":[{"method":"doA","file":"a.go","lineNumber":65},{"method":"fetchB","file":"b.go","lineNumber":99,"inProject":true},{"method":"incrementI","file":"i.go","lineNumber":651}]}],"groupingHash":"custom grouping hash","metaData":{"custom tab":{"my key":"my value"}},"payloadVersion":"4","session":{"startedAt":"`
const expLargePost = `,"severity":"info","severityReason":{"type":"unhandledError","attributes":{"framework":"gin"}},"unhandled":true,"user":{"id":"1234baerg134","name":"Kool Kidz on da bus","email":"typo@busgang.com"}}],"notifier":{"name":"Bugsnag Go","url":"https://github.com/bugsnag/bugsnag-go","version":"1.9.0"}}`
const expLargePost = `,"severity":"info","severityReason":{"type":"unhandledError","attributes":{"framework":"gin"}},"unhandled":true,"user":{"id":"1234baerg134","name":"Kool Kidz on da bus","email":"typo@busgang.com"}}],"notifier":{"name":"Bugsnag Go","url":"https://github.com/bugsnag/bugsnag-go","version":"1.9.1"}}`

func TestMarshalEmptyPayload(t *testing.T) {
sessionTracker = sessions.NewSessionTracker(&sessionTrackingConfig)
Expand Down
2 changes: 1 addition & 1 deletion v2/bugsnag.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

// Version defines the version of this Bugsnag notifier
const Version = "2.1.2"
const Version = "2.2.0"

var panicHandlerOnce sync.Once
var sessionTrackerOnce sync.Once
Expand Down

0 comments on commit 694009f

Please sign in to comment.