Skip to content

Commit 2d7f1d7

Browse files
author
Riccardo Busetti
authored
feat(dynamic-sampling): Add new patterns to match health checks (#68880)
1 parent b538e3a commit 2d7f1d7

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/sentry/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ def from_str(cls, string: str) -> int:
705705
"*/health",
706706
"*/healthy",
707707
"*/healthz",
708+
"*/_health",
709+
r"*/\[_health\]",
708710
"*/live",
709711
"*/livez",
710712
"*/ready",

tests/sentry/relay/snapshots/test_config/test_get_project_config/full_config/MONOLITH.pysnap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ config:
9292
- '*/health'
9393
- '*/healthy'
9494
- '*/healthz'
95+
- '*/_health'
96+
- '*/\[_health\]'
9597
- '*/live'
9698
- '*/livez'
9799
- '*/ready'

tests/sentry/relay/snapshots/test_config/test_get_project_config/full_config/REGION.pysnap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ config:
9393
- '*/health'
9494
- '*/healthy'
9595
- '*/healthz'
96+
- '*/_health'
97+
- '*/\[_health\]'
9698
- '*/live'
9799
- '*/livez'
98100
- '*/ready'

0 commit comments

Comments
 (0)