5.0.0-alpha.1
Pre-release
Pre-release
API Changes
- You should no longer pass
AndroidContextas an argument toSentrySdk.Init(#3562) - The
SentryUser.Segmentproperty has been deprecated. Consider sending this as a tag or additional data instead (#3563) - The ITraceContext now includes an Origin, which is set automatically and is primarily used internally by the Sentry server (#3564)
Device.BatteryLevelandDevice.ProcessorFrequencyare now stored as floats rather than ints, to align with the Cocoa and Java SDKs (#3567)SentryOptions.EnableTracinghas been removed. Instead, tracing should be enabled or disabled by setting theSentryOptions.TracesSampleRateor by usingSentryOptions.TracesSamplerto configure a sampling function (#3569)- The
FailedRequestTargets,TagFiltersandTracePropagationTargetsoptions have all been changed fromSubstringOrRegexPatterntoIList<StringOrRegex>(#3566) Scope.Transactionis now always stored as anAsyncLocalalso in Global Mode, to prevent auto-instrumented spans from the UI ending up parented to transactions from a background task (or vice versa). (#3596)- Heap dumps can be captured automatically when memory usage exceeds a configurable threshold (#3667)
- Sentry's Experimental Metrics feature has been deprecated and removed from the SDK. (#3718)
Features
- Added support for
.NET 9(preview) (#3699) - libsentrysupplemental.so now supports 16 KB page sizes on Android (#3723)
- Added
SentryOptionsextension for profiling:options.AddProfilingIntegration()(#3660)
Fixes
- Fixed NullReferenceException in SentryTraceHeader when parsing null or empty values (#3757)
- ArgumentNullException in FormRequestPayloadExtractor when handling invalid form data on ASP.NET (#3734)
- Crash when using NLog with FailedRequestStatusCodes options in a Maui app with Trimming enabled (#3743)