The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.21.0.
Note: this release includes one breaking change and some deprecations, which are listed below.
Breaking Changes
This change does not apply if you use https://sentry.io
- Remove support for the
/store
endpoint (#631)- This change requires a self-hosted version of Sentry 20.6.0 or higher. If you are using a version of self-hosted Sentry (aka on-premise) older than 20.6.0, then you will need to upgrade your instance.
Features
- Rename four span option functions (#611, #624)
TransctionSource
->WithTransactionSource
SpanSampled
->WithSpanSampled
OpName
->WithOpName
TransactionName
->WithTransactionName
- Old functions
TransctionSource
,SpanSampled
,OpName
, andTransactionName
are still available but are now deprecated and will be removed in a future release.
- Make
client.EventFromMessage
andclient.EventFromException
methods public (#607) - Add
client.SetException
method (#607)- This allows to set or add errors to an existing
Event
.
- This allows to set or add errors to an existing
Bug Fixes
- Protect from panics while doing concurrent reads/writes to Span data fields (#609)
- [otel] Improve detection of Sentry-related spans (#632, #636)
- Fixes cases when HTTP spans containing requests to Sentry were captured by Sentry (#627)
Misc
- Drop testing in (legacy) GOPATH mode (#618)
- Remove outdated documentation from https://pkg.go.dev/github.com/getsentry/sentry-go (#623)