Skip to content

chore: require servicekit 3 and read its HTTP metric names in the console - #128

Merged
mortenoh merged 1 commit into
mainfrom
feat/servicekit-3
Oct 2, 2026
Merged

mortenoh merged 1 commit into
mainfrom
feat/servicekit-3

Conversation

@mortenoh

@mortenoh mortenoh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Moves chapkit to servicekit 3.0.0 (servicekit>=3.0.0,<4). servicekit 3 uses FastAPI's built-in OpenTelemetry for HTTP metrics and turns monitoring on by default (dhis2-chap/servicekit#45, release v3.0.0).

  • Console Monitoring page: request rate and average latency now read http_server_request_duration_seconds_count and _sum instead of http_server_duration_milliseconds_*. Latency is converted from seconds so it still shows in ms. Bundle rebuilt.
  • Docs: /metrics is on by default; turning it off now takes .with_monitoring(enabled=False), since removing the .with_monitoring() call no longer does it (monitoring guide, index, web console guide).
  • Lockfile: servicekit 3.0.0, fastapi 0.142.2.

Testing: make lint, make test (943 passed, 3 skipped), frontend tsc -b --noEmit, pnpm lint, pnpm build.

@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
frontend/src/pages/MonitoringPage.tsx 0.00% 2 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

@mortenoh
mortenoh merged commit f3ada50 into main Oct 2, 2026
5 checks passed
@mortenoh
mortenoh deleted the feat/servicekit-3 branch October 2, 2026 05:38
@mortenoh mortenoh mentioned this pull request Oct 2, 2026
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