github getsentry/sentry-dotnet 5.0.0-alpha.1

pre-release5 hours ago

API Changes

  • You should no longer pass AndroidContext as an argument to SentrySdk.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 and Device.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 the SentryOptions.TracesSampleRate or by using SentryOptions.TracesSampler to configure a sampling function (#3569)
  • The FailedRequestTargets, TagFilters and TracePropagationTargets options have all been changed from SubstringOrRegexPattern to IList<StringOrRegex> (#3566)
  • Scope.Transaction is now always stored as an AsyncLocal 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)

Dependencies

Don't miss a new sentry-dotnet release

NewReleases is sending notifications on new releases.