Browse Source

feat(sampling): Add /healthz to health check bias (#41261)

Matej Minar 2 years ago
parent
commit
fa7c31ba50
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/sentry/dynamic_sampling/rules_generator.py

+ 9 - 1
src/sentry/dynamic_sampling/rules_generator.py

@@ -23,7 +23,15 @@ from sentry.models import Project, Release
 
 
 # https://kubernetes.io/docs/reference/using-api/health-checks/
 # https://kubernetes.io/docs/reference/using-api/health-checks/
 # Also it covers: livez, readyz
 # Also it covers: livez, readyz
-HEALTH_CHECK_GLOBS = ["*healthcheck*", "*healthy*", "*live*", "*ready*", "*heartbeat*", "*/health"]
+HEALTH_CHECK_GLOBS = [
+    "*healthcheck*",
+    "*healthy*",
+    "*live*",
+    "*ready*",
+    "*heartbeat*",
+    "*/health",
+    "*/healthz",
+]
 
 
 
 
 def generate_uniform_rule(sample_rate: Optional[float]) -> BaseRule:
 def generate_uniform_rule(sample_rate: Optional[float]) -> BaseRule: