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

6
pnpm-lock.yaml generated
View File

@@ -166,6 +166,9 @@ importers:
'@trpc/server':
specifier: ^11.0.0
version: 11.16.0(typescript@5.9.3)
inversify:
specifier: ^6.2.0
version: 6.2.2(reflect-metadata@0.2.2)
next:
specifier: ^15.3.0
version: 15.5.14(@opentelemetry/api@1.9.1)(@playwright/test@1.59.1)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.99.0)
@@ -178,6 +181,9 @@ importers:
react-dom:
specifier: ^19.0.0
version: 19.2.4(react@19.2.4)
reflect-metadata:
specifier: ^0.2.2
version: 0.2.2
superjson:
specifier: ^2.2.1
version: 2.2.6