Normalize source fetch instrumentation for /api/metrics #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created from local scan plus Gitea runner follow-up after reviewing existing issues #1-#21.
Current status: /api/metrics exposes fetch metrics by host and by source, but many source modules either call safeFetch() without a source option or bypass safeFetch() with raw etch(). That makes network health attribution incomplete: failures cluster under unknown, and raw provider calls are invisible to metrics, retry, and shared timeout behavior.
Code references:
eliefweb.mjs, usaspending.mjs,
eddit.mjs, and alert/LLM integrations use raw etch() for provider calls.
Acceptance criteria:
In Bearbeitung durch Codex auf Branch codex/issue-22-source-fetch-instrumentation. Scope: Fetch-Instrumentation normalisieren: stabile source attribution in Quellen, raw-fetch Ausnahmen dokumentieren, Regression. Runner-only: keine lokalen npm/node Laeufe.
PR geoeffnet: #35\n\nStatus: mergeable. Scope: safeFetch/safeFetchText inferieren stabile Provider-Buckets, wenn source fehlt; unbekannte Hosts fallen auf Hostnamen statt unknown zurueck. Raw-fetch-Ausnahmen und Instrumentierungsregeln dokumentiert. Runner-only: keine lokalen npm/node Tests.