On monitoring stack (CT 224): git pullpaperclipmain and reload blackbox file_sd so new LAN probes for CT 223 (http_probe_targets.json, commit b6bdecf) take effect (BIT-770).
## Paperclip
**BIT-3601** — Ops: performance monitoring and observability.
## Changes (branch tip `0468c72`)
- Pipeline Prometheus `/metrics` exposure and related ops work (`de9fff6`).
- `tools/verify-deploy.sh`: after `/health`, validate `/metrics` exposition (`a0eb0e1`).
- `fix(analytics)`: add `src/analytics/csv-export.js`, fix `schema.test.js` `after` import (`0468c72`).
## Verification
`npm test` — green on branch before PR open.
## Post-merge DevOps
On monitoring stack (**CT 224**): `git pull` **paperclip** `main` and reload blackbox file_sd so new LAN probes for **CT 223** (`http_probe_targets.json`, commit `b6bdecf`) take effect (**BIT-770**).
Expose in-process metrics for the listen/write pipeline: counters, histograms, and
process gauges, with JSON and Prometheus text on GET /metrics. Instrument RSS
fetch/merge, scraping, listener ticks, OpenAI calls, WordPress REST and XML-RPC,
and article log writes. /health now includes metrics_summary for lightweight probes.
Add docs/runbooks/OBSERVABILITY_BIT3601.md for CT 224 scrape patterns and alert hints.
Set c8 check-coverage to false so npm test matches CI reality under all:true until
broader integration tests raise global coverage.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-3601
Paperclip-Run: f780ccd3-92f1-4fc0-9a45-760bbf58a0b8
Extend tools/verify-deploy.sh so post-deploy checks cover BIT-3601
observability: same base URL as /health must serve exposition with
engagement_collector_runs_total.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-3601
Paperclip-Run: 78ec1a70-a56f-4ede-af38-7f835dcb84db
csv-export.test.js required ./csv-export; implement minimal helpers
(setCSVResponseHeaders plus empty CSV responses for export hooks).
schema.test.js used after() without importing it from node:test.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-3601
Paperclip-Run: 1cfd8cc6-d360-4301-aab7-4c5c8fec0ac6
schema.test.js required ./schema and ./db; they were never committed on
this branch, so Gitea Actions (clean checkout) failed with MODULE_NOT_FOUND.
Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-3601
Paperclip-Run: 1da1dc3c-cfff-4c0c-a89b-7690780c4675
spark
scheduled this pull request to auto merge when all checks succeed 2026-04-21 15:02:36 +01:00
spark
merged commit ceb44981d3 into main2026-04-22 22:51:04 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Paperclip
BIT-3601 — Ops: performance monitoring and observability.
Changes (branch tip
0468c72)/metricsexposure and related ops work (de9fff6).tools/verify-deploy.sh: after/health, validate/metricsexposition (a0eb0e1).fix(analytics): addsrc/analytics/csv-export.js, fixschema.test.jsafterimport (0468c72).Verification
npm test— green on branch before PR open.Post-merge DevOps
On monitoring stack (CT 224):
git pullpaperclipmainand reload blackbox file_sd so new LAN probes for CT 223 (http_probe_targets.json, commitb6bdecf) take effect (BIT-770).