github getsentry/sentry-dotnet 4.2.0

latest releases: 4.13.0, 4.12.2, 4.12.1-segv1...
8 months ago

Features

  • ASP.NET Core: Blocking call detection. An event with the stack trace of the blocking call will be captured as event. (#2709)
    • IMPORTANT: Verify this in test/staging before prod! Blocking calls in hot paths could create a lot of events for your Sentry project.
    • Opt-in via options.CaptureBlockingCalls = true
    • Disabled for specific code blocks with using (new SuppressBlockingDetection())
    • Doesn't detect everything. See original Caveats described by Ben Adams.
  • Added Crons support via SentrySdk.CaptureCheckIn and an integration with Hangfire (#3128)
  • Common tags set automatically for metrics and metrics summaries are attached to Spans (#3191)

API changes

  • Removed ScopeExtensions class - all the public methods moved directly to Scope (#3186)

Fixes

  • The Sentry Middleware on ASP.NET Core no longer throws an exception after having been initialized multiple times (#3185)
  • Empty strings are used instead of underscores to replace invalid metric tag values (#3176)
  • Filtered OpenTelemetry spans are garbage collected correctly (#3198)

Dependencies

Don't miss a new sentry-dotnet release

NewReleases is sending notifications on new releases.