Skip to content

Build Health Check Endpoint Dependency Graph for System Observability #602

@temma02

Description

@temma02

Description

Build a comprehensive health check endpoint that reports the health of all system dependencies as a structured dependency graph, enabling rapid diagnosis of which subsystem is degraded.

Requirements and Context

  • Observability: Health check must report per-dependency status
  • Testing: Test health aggregation logic
  • Documentation: Document the health check schema

Suggested Execution

Branch: feat/issue-066-health-check-dependency-graph

Implement Changes

  • Extend apps/backend/src/app/api/cron/health-check/route.ts to report per-dependency status
  • Check database, Stellar network, Vercel API, and Stripe connectivity
  • Return a structured graph with overall and per-dependency health
  • Include response time metrics for each dependency check

Test and Commit

  • Test the aggregation of per-dependency health into overall status
  • Test partial-failure reporting
  • Document the health check response schema

Example Commit Message

feat(health): build health check endpoint dependency graph

- Report per-dependency health for database, Stellar, Vercel, Stripe
- Return structured graph with overall and per-dependency status
- Include per-dependency response time metrics

Guidelines

  • Use short timeouts for dependency checks to avoid slow responses
  • Return 503 when critical dependencies are down
  • Keep the health check itself lightweight

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions