Skip to content

Commit 5d1ed0c

Browse files
committed
feat(ds): Detect health check routes with trailing slash
1 parent a612666 commit 5d1ed0c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/sentry/constants.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,19 @@ class InsightModules(Enum):
790790
"*/readyz",
791791
"*/ping",
792792
"*/up",
793+
# Same as above with trailing slash. Relay's pattern matcher cannot handle
794+
# optional trailing slashes.
795+
"*/health/",
796+
"*/healthy/",
797+
"*/healthz/",
798+
"*/_health/",
799+
r"*/\[_health\]/",
800+
"*/live/",
801+
"*/livez/",
802+
"*/ready/",
803+
"*/readyz/",
804+
"*/ping/",
805+
"*/up/",
793806
]
794807

795808

0 commit comments

Comments
 (0)