Skip to content

Validate metrics and health route paths at construction - #419

Merged
lesnik512 merged 1 commit into
mainfrom
fix/395-route-path-validation
Nov 3, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/395-route-path-validation

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #395.

Empty paths disable their routes. An explicit health path of / remains valid.

Breaking changes

Invalid non-empty prometheus_metrics_path and health_checks_path values now raise ConfigurationError during config construction.

Verification

  • Regression tests failed before the fix.
  • just lint-ci passed.
  • just test-ci passed with 626 tests and 100% coverage.

@lesnik512
lesnik512 merged commit 8e2f514 into main Nov 3, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/395-route-path-validation branch November 3, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raise on an invalid prometheus_metrics_path or health_checks_path

1 participant