Skip to content

Releases: getsentry/sentry-dotnet

5.4.0

15 Mar 18:32
Compare
Choose a tag to compare

Enhancements

  • Profiling: improve performance by subscribing only to necessary CLR events (#3970)

Fixes

  • Unknown stack frames in profiles on .NET 8+ (#3967)

5.3.0

07 Mar 20:03
Compare
Choose a tag to compare

Features

  • User Feedback can now be captured without errors/exceptions. Note that these APIs replace the older UserFeedback APIs, which have now been marked as obsolete (and will be removed in a future major version bump) (#3981)

Fixes

  • Using SentryOptions.Native.SuppressExcBadAccess and SentryOptions.Native.SuppressSignalAborts, users can now block duplicate errors from native due to dotnet NullReferenceExceptions - Defaults to false (#3998)
  • Native iOS events are now exposed to the dotnet layer for users to hook through SentryOptions.BeforeSend and SentryOptions.OnCrashedLastRun (#2102)
  • Prevent crashes from occurring on Android during OnBeforeSend (#4022)

Dependencies

5.2.0

26 Feb 21:14
Compare
Choose a tag to compare

Features

  • Serilog scope properties are now sent with Sentry events (#3976)
  • The sample seed used for sampling decisions is now propagated, for use in downstream custom trace samplers (#3951)
  • Add Azure Function UseSentry overloads for easier wire ups (#3971)

Fixes

  • Fix mismapped breadcrumb levels coming in from native to dotnet SDK (#3993)

Dependencies

5.1.1

13 Feb 18:54
Compare
Choose a tag to compare

Fixes

  • Emit transaction.data inside contexts.trace.data (#3936)
  • Native SIGSEGV errors resulting from managed NullReferenceExceptions are now suppressed on Android (#3903)
  • OTel activities that are marked as not recorded are no longer sent to Sentry (#3890)
  • Fixed envelopes with oversized attachments getting stuck in __processing (#3938)
  • OperatingSystem will now return macOS as OS name instead of 'Darwin' as well as the proper version. (#2710)
  • Ignore null value on CocoaScopeObserver.SetTag (#3948)

5.1.0

03 Feb 04:11
Compare
Choose a tag to compare

Significant change in behavior

  • The User.IpAddress is now only set to {{auto}} when SendDefaultPii is enabled. This change gives you control over IP address collection directly on the client (#3893)

Features

  • .NET on iOS: Add experimental EnableAppHangTrackingV2 configuration flag to the options binding SDK (#3877)
  • Added SentryOptions.DisableSentryHttpMessageHandler. Useful if you're using OpenTelemetry.Instrumentation.Http and ending up with duplicate spans. (#3879)

Fixes

  • Prevent Native EXC_BAD_ACCESS signal errors from being captured when managed NullRefrenceExceptions occur (#3909)
  • Fixed duplicate SentryMauiEventProcessors (#3905)
  • Fixed invalid string.Format index in Debug logs for the DiagnosticSource integration (#3923)

Dependencies

5.0.1

08 Jan 19:27
Compare
Choose a tag to compare

Fixes

  • .NET Mobile: Disable and made obsolete the iOS Watchdog termination feature which is based on heuristics that don't work in .NET (#3867)
  • .NET on Android: NullReferenceException handled by Mono cause the app to crash (PR #3694) (#3871)

Dependencies

5.0.0

19 Dec 02:15
Compare
Choose a tag to compare

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

5.0.0-alpha.1

25 Nov 01:17
Compare
Choose a tag to compare
5.0.0-alpha.1 Pre-release
Pre-release

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

4.13.0

05 Nov 22:55
Compare
Choose a tag to compare

Features

  • Limited experimental support for Session Replay Recording on Android (#3552)

Fixes

  • When using OTel and ASP.NET Core the SDK could try to process OTel spans after the SDK had been closed (#3726)

Dependencies

4.12.2

02 Nov 13:32
Compare
Choose a tag to compare

Features

  • Android - allow logcat attachments to be previewed in Sentry (#3711)
  • Added a SetBeforeScreenshotCapture callback to the options: allowing the user to set an action before the screenshot is taken (#3661)
  • Make Sentry.AspNetCore.Blazor.WebAssembly generally available. (#3674)

Fixes

  • Events from NDK on Android will report sdk.name sentry.native.android.dotnet (#3682)

Dependencies