Skip to content

5.0.0

Latest
Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 19 Dec 02:15

API Changes

  • Removed net6.0 and net7.0 TFMs as Microsoft has stopped supporting both of these now. If you need to target net6.0 or net7.0 then we recommend using version 4.x of the .NET SDK for Sentry. (#3807)
  • Sentry's Experimental Metrics feature has been deprecated and removed from the SDK. (#3718)
  • 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)
  • Temporarily removed experimental Session Replay support (#3827)
  • 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)
  • 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)

Features

  • Added support for .NET 9 (#3699)
  • Heap dumps can be captured automatically when memory usage exceeds a configurable threshold. Note that this API is still experimental and may change based on user feedback. (#3667)
  • libsentrysupplemental.so now supports 16 KB page sizes on Android (#3723)
  • Added SentryOptions extension for profiling: options.AddProfilingIntegration() (#3660)

Fixes

  • Address Trim warnings to enable AOT support, including support for MAUI specifically. (#3841)
  • Fixed JNI Error when accessing Android device data from multiple threads (#3802)
  • Android - fix bug that prevents logcat.log from getting attached to unhandled events (SIGSEGV Segfault) (#3694)
  • Fixed ArgumentNullException in FormRequestPayloadExtractor when handling invalid form data on ASP.NET (#3734)
  • Fixed NullReferenceException in SentryTraceHeader when parsing null or empty values (#3757)
  • Fix "System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'idData')" error propagating OpenTelemetry span ids (#3850)
  • ArgumentNullException in FormRequestPayloadExtractor when handling invalid form data on ASP.NET (#3734)
  • Fixed crash when using NLog with FailedRequestStatusCodes options in a Maui app with Trimming enabled (#3743)

Dependencies