Errors and dependencies in monitoring
Monitoring gains endpoint, dependency and error tabs, a failing-spans API, and security headers on every response.
The /monitoring page now has tabs for services, endpoints, dependencies and errors. Services rank by request volume with failure share and p50/p95 latency. Dependencies list each service’s outbound calls with call count, total time and latency. Errors is a filterable list of failing spans, and each row links to its trace.
The active tab, service and error filters live in the URL, so a filtered view can be bookmarked or shared. The failing spans are also available from GET /api/monitoring/errors.
Every response now carries security headers, including X-Frame-Options: SAMEORIGIN.
Before you upgrade
GET /api/indexes/{indexId}/statstakesstartTsandendTsin epoch seconds instead offromandtoin milliseconds.servicesinGET /api/monitoring/servicesis now a list of objects. The plain list of names isserviceNames.- Embedding the UI in a page on another origin stops working because of the new frame headers.
Changelog
⚠️ Breaking
GET /api/indexes/{indexId}/statsrange parameters.from/toin milliseconds are nowstartTs/endTsin epoch seconds.servicesinGET /api/monitoring/servicesis now a list of objects —{ name, requests, errors, p50, p95 }. The plain name list lives on asserviceNames, andsummarygainserrorSpans.- Security headers on every response, from Hono’s
secureHeaders():X-Frame-Options: SAMEORIGIN, COOP and CORPsame-origin,Referrer-Policy: no-referrerandnosniff. Embedding the UI cross-origin stops working.
Added
GET /api/monitoring/errors— the failing spans behind the error rate, newest first. Filters:service,operation,kind(server,client,producer,consumer,internal),httpStatus(4xx,5xx,none),startTs/endTs,limit(max 100) andoffset(max 5000). Rows carrytraceId,spanId,timestampMs,service,operation,kind,message,httpStatusanddurationMillis, alongsidehasMore. Needslogs:read(session cookie, personal key or service-account key) and is recorded in the search audit.- APM detail on
/monitoring— tabs for services, endpoints, dependencies and errors. Services rank by request volume with failure share and p50/p95; dependencies list each service’s outbound peers with call count, total time and p50/p95; errors is a filterable span list, each row linking to its trace. failingOperationsanddependenciesonGET /api/monitoring/services— operations ranked by error count, and per-service outbound call volume and latency.- Monitoring state lives in the URL — the active tab (
view), the scoped service, and the error filters (operation,kind,httpStatus), so a filtered view can be linked or bookmarked. - Pagination on the service and endpoint tables, with the rows-per-page choice remembered.
Changed
- Request IDs come from Hono’s own middleware. An inbound
x-request-idthat isn’t a short, plain token is replaced with a fresh UUID instead of being echoed into the request’s log lines and error body. - Native scrollbars everywhere. The
overlayscrollbarsandoverlayscrollbars-sveltedependencies are gone. - Bun 1.4.0 in the image, in
enginesand inbun-types; CI now runsbun audit --audit-level=high. - Log search and monitoring-error empty states say what happened, announce themselves to screen readers, and offer “Clear filters” when filters explain the empty result.
- Internal: request logs carry the matched
routenext topath, database initialization moved tolib/db, timestamp query parameters share one validator carrying their unit, and unused Quickwit index metadata fields were dropped.
Fixed
- Tooltips on the collapsed sidebar — nav items, Help, and the collapse toggle — never appeared.
- A JSON error response that isn’t a Rootprint payload (a proxy 502, say) surfaced a
TypeErrorinstead of the real failure.