Skip to content

0.21.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 08 May 14:07

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, and TransactionName are still available but are now deprecated and will be removed in a future release.
  • Make client.EventFromMessage and client.EventFromException methods public (#607)
  • Add client.SetException method (#607)
    • This allows to set or add errors to an existing Event.

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