go: Update module github.com/getsentry/sentry-go to v0.40.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/getsentry/sentry-go | require | minor |
v0.36.1 -> v0.40.0
|
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
getsentry/sentry-go (github.com/getsentry/sentry-go)
v0.40.0: 0.40.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.40.0.
Bug Fixes
- Disable
DisableTelemetryBufferflag and noop Telemetry Buffer, to prevent a panic at runtime (#1149).
v0.39.0: 0.39.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.39.0.
Features
- Drop events from the telemetry buffer when rate-limited or transport is full, allowing the buffer queue to empty itself under load (#1138).
Bug Fixes
- Fix scheduler's
hasWork()method to check if buffers are ready to flush. The previous implementation was causing CPU spikes (#1143).
v0.38.0: 0.38.0
Breaking Changes
Features
-
Introduce a new async envelope transport and telemetry buffer to prioritize and batch events (#1094, #1093, #1107).
- Advantages:
- Prioritized, per-category buffers (errors, transactions, logs, check-ins) reduce starvation and improve resilience under load
- Batching for high-volume logs (up to 100 items or 5s) cuts network overhead
- Bounded memory with eviction policies
- Improved flush behavior with context-aware flushing
- Advantages:
-
Add
ClientOptions.DisableTelemetryBufferto opt out and fall back to the legacy transport layer (HTTPTransport/HTTPSyncTransport).err := sentry.Init(sentry.ClientOptions{ Dsn: "__DSN__", DisableTelemetryBuffer: true, // fallback to legacy transport })
Notes
- If a custom
Transportis provided, the SDK automatically disables the telemetry buffer and uses the legacy transport for compatibility.
v0.37.0: 0.37.0
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.37.0.
Breaking Changes
- Behavioral change for the
TraceIgnoreStatusCodesoption. The option now defaults to ignoring 404 status codes (#1122).
Features
- Add
sentry.originattribute to structured logs to identify log origin forslogandlogrusintegrations (auto.log.slog,auto.log.logrus) (#1121).
Bug Fixes
- Fix
slogevent handler to use the initial context, ensuring events use the correct hub/span when the emission context lacks one (#1133). - Improve exception chain processing by checking pointer values when tracking visited errors, avoiding instability for certain wrapped errors (#1132).
Misc
- Bump
golang.org/x/netto v0.38.0 (#1126).
v0.36.2: 0.36.2
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.36.2.
Bug Fixes
- Fix context propagation for logs to ensure logger instances correctly inherit span and hub information from their creation context (#1118)
- Logs now properly propagate trace context from the logger's original context, even when emitted in a different context
- The logger will first check the emission context, then fall back to its creation context, and finally to the current hub
Configuration
- If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.