Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: Remove helper for omitting certain logs from sentry #1852

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading