Releases: getsentry/sentry-go
0.30.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.30.0.
Features
- Add
sentryzerolog
integration (#857) - Add
sentryslog
integration (#865) - Always set Mechanism Type to generic (#896)
Bug Fixes
- Prevent panic in
fasthttp
andfiber
integration in case a malformed URL has to be parsed (#912)
Misc
Drop support for Go 1.18, 1.19 and 1.20. The currently supported Go versions are the last 3 stable releases: 1.23, 1.22 and 1.21.
0.29.1
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.29.1.
Bug Fixes
- Correlate errors to the current trace (#886)
- Set the trace context when the transaction finishes (#888)
Misc
- Update the
sentrynegroni
integration to use the latest (v3.1.1) version of Negroni (#885)
0.29.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.29.0.
Breaking Changes
- Remove the
sentrymartini
integration (#861) - The
WrapResponseWriter
has been moved from thesentryhttp
package to theinternal/httputils
package. If you've imported it previosuly, you'll need to copy the implementation in your project. (#871)
Features
-
Add new convenience methods to continue a trace and propagate tracing headers for error-only use cases. (#862)
If you are not using one of our integrations, you can manually continue an incoming trace by using
sentry.ContinueTrace()
by providing thesentry-trace
andbaggage
header received from a downstream SDK.hub := sentry.CurrentHub() sentry.ContinueTrace(hub, r.Header.Get(sentry.SentryTraceHeader), r.Header.Get(sentry.SentryBaggageHeader)),
You can use
hub.GetTraceparent()
andhub.GetBaggage()
to fetch the necessary header values for outgoing HTTP requests.hub := sentry.GetHubFromContext(ctx) req, _ := http.NewRequest("GET", "http://localhost:3000", nil) req.Header.Add(sentry.SentryTraceHeader, hub.GetTraceparent()) req.Header.Add(sentry.SentryBaggageHeader, hub.GetBaggage())
Bug Fixes
- Initialize
HTTPTransport.limit
ifnil
(#844) - Fix
sentry.StartTransaction()
returning a transaction with an outdated context on existing transactions (#854) - Treat
Proxy-Authorization
as a sensitive header (#859) - Add support for the
http.Hijacker
interface to thesentrynegroni
package (#871) - Go version >= 1.23: Use value from
http.Request.Pattern
for HTTP transaction names when usingsentryhttp
&sentrynegroni
(#875) - Go version >= 1.21: Fix closure functions name grouping (#877)
Misc
- Collect
span
origins (#849)
0.28.1
0.28.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.28.0.
Features
- Add a
Fiber
performance tracing & error reporting integration (#795) - Add performance tracing to the
Echo
integration (#722) - Add performance tracing to the
FastHTTP
integration (#732) - Add performance tracing to the
Iris
integration (#809) - Add performance tracing to the
Negroni
integration (#808) - Add
FailureIssueThreshold
&RecoveryThreshold
toMonitorConfig
(#775) - Use
errors.Unwrap()
to create exception groups (#792) - Add support for matching on strings for
ClientOptions.IgnoreErrors
&ClientOptions.IgnoreTransactions
(#819) - Add
http.request.method
attribute for performance span data (#786) - Accept
interface{}
for span data values (#784)
Fixes
- Fix missing stack trace for parsing error in
logrusentry
(#689)
0.27.0
0.26.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.26.0.
Breaking Changes
As previously announced, this release removes some methods from the SDK.
sentry.TransactionName()
usesentry.WithTransactionName()
instead.sentry.OpName()
usesentry.WithOpName()
instead.sentry.TransctionSource()
usesentry.WithTransactionSource()
instead.sentry.SpanSampled()
usesentry.WithSpanSampled()
instead.
Features
-
Add
WithDescription
span option (#751)span := sentry.StartSpan(ctx, "http.client", WithDescription("GET /api/users"))
-
Add support for package name parsing in Go 1.20 and higher (#730)
Bug Fixes
0.25.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.25.0.
Breaking Changes
As previously announced, this release removes two global constants from the SDK.
sentry.Version
was removed. Usesentry.SDKVersion
instead (#727)sentry.SDKIdentifier
was removed. UseClient.GetSDKIdentifier()
instead (#727)
Features
- Add
ClientOptions.IgnoreTransactions
, which allows you to ignore specific transactions based on their name (#717) - Add
ClientOptions.Tags
, which allows you to set global tags that are applied to all events. You can also define tags by settingSENTRY_TAGS_
environment variables (#718)
Bug fixes
- Fix an issue in the profiler that would cause an infinite loop if the duration of a transaction is longer than 30 seconds (#724)
Misc
dsn.RequestHeaders()
is not to be removed, though it is still considered deprecated and should only be used when using a custom transport that sends events to the/store
endpoint (#720)
0.24.1
0.24.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.24.0.
Deprecations
sentry.Version
to be removed in 0.25.0. Usesentry.SDKVersion
instead.sentry.SDKIdentifier
to be removed in 0.25.0. UseClient.GetSDKIdentifier()
instead.dsn.RequestHeaders()
to be removed after 0.25.0, but no earlier than December 1, 2023. Requests to the/envelope
endpoint are authenticated using the DSN in the envelope header.
Features
- Run a single instance of the profiler instead of multiple ones for each Go routine (#655)
- Use the route path as the transaction names when using the Gin integration (#675)
- Set the SDK name accordingly when a framework integration is used (#694)
- Read release information (VCS revision) from
debug.ReadBuildInfo
(#704)
Bug fixes
- [otel] Fix incorrect usage of
attributes.Value.AsString
(#684) - Fix trace function name parsing in profiler on go1.21+ (#695)