From 975cff6028ef02fc5e7528a34011204925c69587 Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Sun, 17 Mar 2024 18:47:02 +0000 Subject: [PATCH] cleanup: Remove helper for omitting certain logs from sentry --- src/workerd/util/sentry.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/workerd/util/sentry.h b/src/workerd/util/sentry.h index 696554751fc..fbbf2a91de5 100644 --- a/src/workerd/util/sentry.h +++ b/src/workerd/util/sentry.h @@ -30,14 +30,6 @@ inline bool isInterestingException(const kj::Exception& e) { && e.getType() != kj::Exception::Type::OVERLOADED; } -inline kj::StringPtr maybeOmitColoFromSentry(uint32_t coloId) { - // Avoid logging about problems talking to DOG. It's not great to hard-code this, but it'll help - // avoid sentry spam and is only used in deciding whether to log to sentry, not to change behavior - // at all. - const uint32_t dogColoId = 131; - return coloId == dogColoId ? "NOSENTRY"_kj : ""_kj; -} - #define LOG_NOSENTRY(severity, ...) \ KJ_LOG(severity, "NOSENTRY " __VA_ARGS__);