|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -## Unreleased |
| 3 | +## 4.0.0-beta.4 |
4 | 4 |
|
5 | 5 | ### Breaking Changes |
6 | 6 |
|
7 | 7 | - `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](https://github.com/getsentry/sentry-unity/pull/2355)) |
8 | 8 |
|
| 9 | +#### Bump to Sentry SDK for .NET v6.0.0-preview introduces the following changes |
| 10 | + |
| 11 | +- `BreadcrumbLevel.Critical` has been renamed to `BreadcrumbLevel.Fatal` for consistency with the other Sentry SDKs ([#4605](https://github.com/getsentry/sentry-dotnet/pull/4605)) |
| 12 | +- Removed `SentrySdk.CaptureUserFeedback` and all associated members. Use the newer `SentrySdk.CaptureFeedback` instead. ([#4619](https://github.com/getsentry/sentry-dotnet/pull/4619)) |
| 13 | +- ScopeExtensions.Populate is now internal ([#4611](https://github.com/getsentry/sentry-dotnet/pull/4611)) |
| 14 | +- 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](https://github.com/getsentry/sentry-dotnet/pull/4615)) |
| 15 | +- 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](https://github.com/getsentry/sentry-dotnet/pull/4627)) |
| 16 | +- SpanTracer and TransactionTracer are still public but these are now `sealed` (see also [#4627](https://github.com/getsentry/sentry-dotnet/pull/4627)) |
| 17 | +- 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](https://github.com/getsentry/sentry-dotnet/pull/4613)) |
| 18 | + |
| 19 | +### Behavioural Changes |
| 20 | + |
| 21 | +- 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](https://github.com/getsentry/sentry-unity/pull/2374)) |
| 22 | + |
| 23 | +### Features |
| 24 | + |
| 25 | +- The SDK no longer ends sessions as crashed when capturing unhandled or logged exceptions. Instead, sessions get correctly marked as `SessionEndStatus.Unhandled` ([#2376](https://github.com/getsentry/sentry-unity/pull/2376)) |
| 26 | +- 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](https://github.com/getsentry/sentry-unity/pull/2368)) |
| 27 | + |
| 28 | +### Fixes |
| 29 | + |
| 30 | +- When configured, the SDK now no longer treats `Debug.LogError` events as exceptions but resports them as message events instead ([#2377](https://github.com/getsentry/sentry-unity/pull/2377)) |
9 | 31 | ### Fixes |
10 | 32 |
|
11 | 33 | - When targeting Xbox, the SDK now correctly picks up the debug symbols for sentry-native from the `Assets/Plugins/Sentry` directory ([#2363](https://github.com/getsentry/sentry-unity/pull/2363)) |
|
15 | 37 | - Bump CLI from v2.56.0 to v2.57.0 ([#2356](https://github.com/getsentry/sentry-unity/pull/2356), [#2369](https://github.com/getsentry/sentry-unity/pull/2369)) |
16 | 38 | - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2570) |
17 | 39 | - [diff](https://github.com/getsentry/sentry-cli/compare/2.56.0...2.57.0) |
18 | | -- Bump .NET SDK from v5.16.0 to v5.16.2 ([#2359](https://github.com/getsentry/sentry-unity/pull/2359), [#2384](https://github.com/getsentry/sentry-unity/pull/2384)) |
19 | | - - [changelog](https://github.com/getsentry/sentry-dotnet/blob/main/CHANGELOG.md#5162) |
20 | | - - [diff](https://github.com/getsentry/sentry-dotnet/compare/5.16.0...5.16.2) |
| 40 | +- Bump .NET SDK from v5.16.0 to v6.0.0-preview.2 ([#2359](https://github.com/getsentry/sentry-unity/pull/2359), [#2384](https://github.com/getsentry/sentry-unity/pull/2384), [#2364](https://github.com/getsentry/sentry-unity/pull/2364)) |
| 41 | + - [changelog](https://github.com/getsentry/sentry-dotnet/blob/main/CHANGELOG.md#6000-preview.2) |
| 42 | + - [diff](https://github.com/getsentry/sentry-dotnet/compare/5.16.0...6.0.0-peview.2) |
21 | 43 | - Bump Native SDK from v0.11.2 to v0.12.0 ([#2357](https://github.com/getsentry/sentry-unity/pull/2357), [#2378](https://github.com/getsentry/sentry-unity/pull/2378)) |
22 | 44 | - [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0120) |
23 | 45 | - [diff](https://github.com/getsentry/sentry-native/compare/0.11.2...0.12.0) |
|
0 commit comments