chore: address Phase 5 review polish (test descriptions, version conflict comment, mock cleanup)

I3: bind-production.test.ts instrumentation orthogonality tests updated to use
bindOtelInstrumentation as primary name (bindSentryInstrumentation alias still
wired in mock setup for deprecation-alias coverage, not in assertions).
I4: as never cast in init-server-node.ts annotated with explanation of the
sdk-trace-base / sdk-node TypeScript version conflict that necessitates it.
I5: SentryLogRecordProcessor removed from @sentry/opentelemetry mock in
no-instrumentation.ts — that class does not exist in v10.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 12:40:11 +02:00
parent 7c74a1c9e1
commit 9acf16f399
3 changed files with 22 additions and 14 deletions

View File

@@ -91,11 +91,7 @@ vi.mock("@sentry/opentelemetry", () => ({
forceFlush() { return Promise.resolve(); }
shutdown() { return Promise.resolve(); }
},
SentryLogRecordProcessor: class {
onEmit() {}
forceFlush() { return Promise.resolve(); }
shutdown() { return Promise.resolve(); }
},
// SentryLogRecordProcessor does NOT exist in @sentry/opentelemetry v10 — omitted.
// No-op Sentry.init wrapper used by sentry-bridge.ts
init: vi.fn(),
}));