Skip to content

Commit

Permalink
cleanup: Remove helper for omitting certain logs from sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
a-robinson committed Mar 18, 2024
1 parent 85c4d35 commit 975cff6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/workerd/util/sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__);

Expand Down

0 comments on commit 975cff6

Please sign in to comment.