From ea56775fa6ee63a76d6f32a31b6180855fa076a5 Mon Sep 17 00:00:00 2001 From: ta264 Date: Thu, 24 Oct 2019 21:42:41 +0100 Subject: [PATCH] Filter OOM from sentry --- .../InstrumentationTests/SentryTargetFixture.cs | 3 ++- src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs b/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs index 3a3098a23..010578eb8 100644 --- a/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs +++ b/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs @@ -22,7 +22,8 @@ namespace NzbDrone.Common.Test.InstrumentationTests private static Exception[] FilteredExceptions = new Exception[] { new UnauthorizedAccessException(), - new TinyIoC.TinyIoCResolutionException(typeof(string)) + new TinyIoC.TinyIoCResolutionException(typeof(string)), + new OutOfMemoryException() }; [SetUp] diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index 15b2956c9..352124a2e 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -38,6 +38,8 @@ namespace NzbDrone.Common.Instrumentation.Sentry private static readonly HashSet FilteredExceptionTypeNames = new HashSet { // UnauthorizedAccessExceptions will just be user configuration issues "UnauthorizedAccessException", + // Out Of Memory isn't very informative + "OutOfMemoryException", // Filter out people stuck in boot loops "CorruptDatabaseException", // This also filters some people in boot loops