feat(core-shared): bindNoopInstrumentation + bindSentryInstrumentation

Adds DI binder functions for instrumentation. bindNoopInstrumentation binds
NoopTracer + NoopLogger; bindSentryInstrumentation calls initSentryServer then
binds SentryTracer + SentryLogger. Both are idempotent (unbind-first). Adds
inversify + reflect-metadata as devDependencies so container tests compile.
Re-exports from instrumentation barrel. 6 new tests (3+3).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-07 00:01:54 +02:00
parent b08da12447
commit fbcee9b9f2
7 changed files with 155 additions and 0 deletions

6
pnpm-lock.yaml generated
View File

@@ -509,6 +509,12 @@ importers:
'@types/node':
specifier: ^22.0.0
version: 22.19.17
inversify:
specifier: ^6.2.0
version: 6.2.2(reflect-metadata@0.2.2)
reflect-metadata:
specifier: ^0.2.2
version: 0.2.2
vitest:
specifier: ^3.1.0
version: 3.2.4(@types/debug@4.1.13)(@types/node@22.19.17)(happy-dom@20.8.9)(jiti@2.6.1)(jsdom@25.0.1)(lightningcss@1.32.0)(sass@1.99.0)(terser@5.46.2)(tsx@4.21.0)