An error-tracking SDK is installed and actually initialized in code, with server-side coverage
Why it matters
SOC 2 CC7.2 requires that you monitor system components for anomalies, and the first question an auditor asks is "how do you know when production breaks?" An error-tracking service (Sentry, Bugsnag, Rollbar, Honeybadger) that aggregates exceptions and alerts a human is the standard code-level answer; console.error scrolling past in a log nobody tails is not. AI-generated apps fail this in a specific, repeatable way: the model adds @sentry/nextjs to package.json because the prompt mentioned "production ready", then never runs the wizard, so there is no sentry.server.config.ts, no instrumentation.ts register, and no DSN wiring. The dependency line looks like monitoring; unhandled server exceptions still vanish silently. Client-only inits are the second failure mode: browser errors get captured while the API routes that actually corrupt data report nothing. This check verifies the wiring in the repo (an init call with a DSN sourced from env, on the server side), which is exactly the code evidence a SOC 2 auditor will trace when testing CC7.2.
Severity rationale
High because unwired error tracking means server-side failures in production go undetected until users report them, which is a direct CC7.2 monitoring gap an auditor will test on day one, though it does not by itself expose data.
Remediation
Run npx @sentry/wizard@latest -i nextjs (or install @sentry/node for Express) and commit the generated config: sentry.server.config.ts plus an instrumentation.ts whose register() imports it, with Sentry.init({ dsn: process.env.SENTRY_DSN }) reading the DSN from an environment variable, never a hardcoded string. For Express, call Sentry.init at the top of your server entry (src/server.ts) and add Sentry.setupExpressErrorHandler(app) so unhandled route exceptions are captured. Verify the init file is actually imported by the app entry path, not just sitting in the repo. Structured logging (pino, winston) is complementary but is not a substitute: the saas-logging audit covers that layer.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the SOC 2 Technical Readiness Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- soc2:2017 · CC7.2 — Monitoring system components for anomalies
- iso-27001:2022 · A.8.16 — Monitoring activities
- nist:rev5 · SI-4 — System Monitoring
Taxons
History
- 2026-07-03·v1.0.0·Initial soc2-readiness v1 authoring of repo-checkable verification that an error-tracking SDK is wired with a real server-side init, evidencing SOC 2 CC7.2 anomaly monitoring.·by soc2-readiness-v1-build