Skip to content

Commit

Permalink
ref: Use glob alternatives instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed Nov 28, 2024
1 parent 6724b03 commit bcfaf5f
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions src/sentry/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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{/,}",
]


Expand Down

0 comments on commit bcfaf5f

Please sign in to comment.