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.