Skip to content

feat(common): ZGROK-074 - Health Check Endpoints#64

Merged
copyleftdev merged 1 commit intomainfrom
feat/ZGROK-074-health-checks
Jan 25, 2026
Merged

feat(common): ZGROK-074 - Health Check Endpoints#64
copyleftdev merged 1 commit intomainfrom
feat/ZGROK-074-health-checks

Conversation

@copyleftdev
Copy link
Copy Markdown
Owner

Summary

  • Add HealthStatus, ComponentHealth, Status types for structured health data
  • Implement HealthCheck trait for registerable component checks
  • HealthChecker with timeout handling, shutdown awareness, and uptime tracking
  • Edge-specific HealthEndpoint with HTTP response formatting
  • VerboseHealthResponse for detailed health queries
  • TunnelHealthCheck for monitoring active tunnels

Test plan

  • All 441 tests pass
  • Clippy clean with -D warnings
  • Format verified with cargo fmt --check

Closes #74

🤖 Generated with Claude Code

Add liveness and readiness health check system:
- HealthStatus, ComponentHealth, Status types for structured health data
- LivenessResponse and ReadinessResponse for API responses
- HealthCheck trait for registering component checks
- HealthChecker with timeout handling and shutdown awareness
- AlwaysHealthy helper for simple always-healthy components
- Edge-specific HealthEndpoint with /health/live, /health/ready handlers
- VerboseHealthResponse for ?verbose=true query support
- TunnelHealthCheck for monitoring active tunnel count
- 31 new tests

Closes #74

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@copyleftdev copyleftdev merged commit 4159ef6 into main Jan 25, 2026
@copyleftdev copyleftdev deleted the feat/ZGROK-074-health-checks branch January 25, 2026 18:05
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.

1 participant