From 4a43b87679a7d9b09d1cf44e8739ed28f5e54f09 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 21 Aug 2025 03:29:25 +0000 Subject: [PATCH 1/2] fix(blocking-monitor): omit 'handled' flag for blocking call detection events (level: warning) This resolves #XXXX. The 'handled' property is now omitted from the mechanism for blocking call detection events, so they are not treated as unhandled crashes in Sentry UI. --- src/Sentry/Ben.BlockingDetector/BlockingMonitor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Sentry/Ben.BlockingDetector/BlockingMonitor.cs b/src/Sentry/Ben.BlockingDetector/BlockingMonitor.cs index 113a4e85ae..d91b5d2207 100644 --- a/src/Sentry/Ben.BlockingDetector/BlockingMonitor.cs +++ b/src/Sentry/Ben.BlockingDetector/BlockingMonitor.cs @@ -70,7 +70,6 @@ public void BlockingStart(DetectionSource detectionSource) Mechanism = new Mechanism { Type = "BlockingCallDetector", - Handled = false, Description = "Blocking calls can cause ThreadPool starvation.", Source = detectionSource.ToString() }, From 953597b9676f3d66bd282f24c3c0a0e50a76eca1 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Thu, 21 Aug 2025 15:45:36 +1200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed287feb39..578b58e5ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Remove `IDisposable` from `SentryStructuredLogger`. Disposal is intended through the owning `IHub` instance ([#4424](https://github.com/getsentry/sentry-dotnet/pull/4424)) - Ensure all buffered logs are sent to Sentry when the application terminates unexpectedly ([#4425](https://github.com/getsentry/sentry-dotnet/pull/4425)) - `InvalidOperationException` potentially thrown during a race condition, especially in concurrent high-volume logging scenarios ([#4428](https://github.com/getsentry/sentry-dotnet/pull/4428)) +- Blocking calls are no longer treated as unhandled crashes ([#4458](https://github.com/getsentry/sentry-dotnet/pull/4458)) ### Dependencies