feat(app): bindAll() Rule 0 — DSN-driven instrumentation (orthogonal to repo mode)

Introduces resolveInstrumentation() in apps/web-next/src/server/bind-production.ts:
reads WEB_NEXT_SENTRY_DSN; if set, calls bindSentryInstrumentation; else Noop.
Both bindAllProduction and bindAllDevSeed call resolveInstrumentation() at the
top. Exports __resetBindStateForTests() and __getInstrumentationForTests() for
test helpers. Adds inversify + reflect-metadata as direct dependencies of web-next.
Existing 6 tests still pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-07 00:03:27 +02:00
parent fbcee9b9f2
commit efacb0e072
3 changed files with 67 additions and 19 deletions

View File

@@ -25,10 +25,12 @@
"@repo/navigation": "workspace:*",
"@tanstack/react-query": "^5.66.0",
"@trpc/server": "^11.0.0",
"inversify": "^6.2.0",
"next": "^15.3.0",
"payload": "^3.14.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"reflect-metadata": "^0.2.2",
"superjson": "^2.2.1"
},
"devDependencies": {