API Changes
- You should no longer pass
AndroidContext
as an argument toSentrySdk.Init
(#3562) - The
SentryUser.Segment
property 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.BatteryLevel
andDevice.ProcessorFrequency
are now stored as floats rather than ints, to align with the Cocoa and Java SDKs (#3567)SentryOptions.EnableTracing
has been removed. Instead, tracing should be enabled or disabled by setting theSentryOptions.TracesSampleRate
or by usingSentryOptions.TracesSampler
to configure a sampling function (#3569)- The
FailedRequestTargets
,TagFilters
andTracePropagationTargets
options have all been changed fromSubstringOrRegexPattern
toIList<StringOrRegex>
(#3566) Scope.Transaction
is now always stored as anAsyncLocal
also 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
SentryOptions
extension 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)