4.0.0-beta.4
Pre-release
Pre-release
Breaking Changes
sentry-nativeis now built on Ubuntu 22.04 instead of Ubuntu 20.04, which reached EOL in May 2025. If you are running you game on a server on Ubuntu 20.04, you should update the OS before upgrading to this SDK version. (#2355)
Bump to Sentry SDK for .NET v6.0.0-preview introduces the following changes
BreadcrumbLevel.Criticalhas been renamed toBreadcrumbLevel.Fatalfor consistency with the other Sentry SDKs (#4605)- Removed
SentrySdk.CaptureUserFeedbackand all associated members. Use the newerSentrySdk.CaptureFeedbackinstead. (#4619) - ScopeExtensions.Populate is now internal (#4611)
- Backpressure handling is now enabled by default, meaning that the SDK will monitor system health and reduce the sampling rate of events and transactions when the system is under load. When the system is determined to be healthy again, the sampling rates are returned to their original levels. (#4615)
- Spans and Transactions now implement
IDisposableso that they can be used withusingstatements/declarations that will automatically finish the span with a status of OK when it passes out of scope, if it has not already been finished, to be consistent withActivityclasses when using OpenTelemetry (#4627) - SpanTracer and TransactionTracer are still public but these are now
sealed(see also #4627) - CaptureFeedback now returns a
SentryIdand aCaptureFeedbackResultout parameter that indicate whether feedback was captured successfully and what the reason for failure was otherwise (#4613)
Behavioural Changes
- The SDK no longer refreshes the trace ID when the app loses and regains focus. This means that the trace ID persists from game start to game end. The SDK now also automatically adds breadcrumbs on those lifecycle events. (#2374)
Features
- The SDK no longer ends sessions as crashed when capturing unhandled or logged exceptions. Instead, sessions get correctly marked as
SessionEndStatus.Unhandled(#2376) - Added support for Structured Logging. The
SentrySdk.LoggerAPI is now exposed for Unity users, enabling structured log capture. The SDK can also automatically capture and send Debug logs based on the options configured. (#2368)
Fixes
- When configured, the SDK now no longer treats
Debug.LogErrorevents as exceptions but resports them as message events instead (#2377)
Fixes
- When targeting Xbox, the SDK now correctly picks up the debug symbols for sentry-native from the
Assets/Plugins/Sentrydirectory (#2363)