Skip to content

4.0.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 03 Nov 20:06

Breaking Changes

  • sentry-native is 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.Critical has been renamed to BreadcrumbLevel.Fatal for consistency with the other Sentry SDKs (#4605)
  • Removed SentrySdk.CaptureUserFeedback and all associated members. Use the newer SentrySdk.CaptureFeedback instead. (#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 IDisposable so that they can be used with using statements/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 with Activity classes when using OpenTelemetry (#4627)
  • SpanTracer and TransactionTracer are still public but these are now sealed (see also #4627)
  • CaptureFeedback now returns a SentryId and a CaptureFeedbackResult out 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.Logger API 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.LogError events 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/Sentry directory (#2363)

Dependencies