fix(core-shared): align OTel type imports to sdk-node re-exports to resolve version conflict

This commit is contained in:
2026-05-11 11:28:07 +02:00
parent f94f09a9fa
commit 4c628022ce
2 changed files with 7 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
import { NodeSDK } from "@opentelemetry/sdk-node";
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
import { NodeSDK, tracing } from "@opentelemetry/sdk-node";
import { buildResource } from "./resource";
import { createSentryOtelBridge } from "./sentry-bridge";
const { BatchSpanProcessor } = tracing;
export type InitOtelServerNodeOpts = {
/** Sentry DSN. When empty, OTel SDK boots without the Sentry exporter. */
dsn: string;

View File

@@ -1,5 +1,7 @@
import type { SpanProcessor } from "@opentelemetry/sdk-trace-base";
import type { LogRecordProcessor } from "@opentelemetry/sdk-logs";
import type { tracing as sdkTracing, logs as sdkLogs } from "@opentelemetry/sdk-node";
type SpanProcessor = sdkTracing.SpanProcessor;
type LogRecordProcessor = sdkLogs.LogRecordProcessor;
export type SentryOtelBridgeOpts = {
/** Sentry DSN. When empty, no Sentry processors are returned (Noop boot). */