Last Updated: 2026-03-14
Overview
PF-07 provides platform-wide error handling, structured logging, and performance monitoring infrastructure. All cores consume these services through the@/platform/monitoring barrel.
Exported APIs
Import path:
@/platform/monitoring
Integration Points
All Cores → PF-07
Every core uses:loggerfor structured logging (module prefix identifies the core)ErrorBoundaryfor crash isolationsanitizeErrorMessage()(from@/shared/lib/error-utils) for user-facing errors
PF-07 → Sentry
- Errors, traces, replays, and structured logs are sent to Sentry
- PHI is scrubbed in
beforeSendbefore events leave the browser - Source maps are uploaded via
@sentry/vite-pluginduring CI/CD
PF-07 → pf_health_metrics
performanceMonitorflushes page load, custom mark, and API metrics topf_health_metricsin Supabase
Cross-Core Dependencies
Related Documents
- MONITORING_RUNBOOK.md — Operational procedures
- Developer Guide: monitoring.md — Developer usage guide
- PF-07 Spec — Expansion spec