diff --git a/src/sentry/constants.py b/src/sentry/constants.py index 4275b65316a62c..fc526aa8d11cce 100644 --- a/src/sentry/constants.py +++ b/src/sentry/constants.py @@ -778,30 +778,17 @@ class InsightModules(Enum): HEALTH_CHECK_GLOBS = [ "*healthcheck*", "*heartbeat*", - "*/health", - "*/healthy", - "*/healthz", - "*/_health", - r"*/\[_health\]", - "*/live", - "*/livez", - "*/ready", - "*/readyz", - "*/ping", - "*/up", - # Same as above with trailing slash. Relay's pattern matcher cannot handle - # optional trailing slashes. - "*/health/", - "*/healthy/", - "*/healthz/", - "*/_health/", - r"*/\[_health\]/", - "*/live/", - "*/livez/", - "*/ready/", - "*/readyz/", - "*/ping/", - "*/up/", + "*/health{/,}", + "*/healthy{/,}", + "*/healthz{/,}", + "*/_health{/,}", + r"*/\[_health\]{/,}", + "*/live{/,}", + "*/livez{/,}", + "*/ready{/,}", + "*/readyz{/,}", + "*/ping{/,}", + "*/up{/,}", ]