fix(core-shared): align OTel type imports to sdk-node re-exports to resolve version conflict
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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). */
|
||||
|
||||
Reference in New Issue
Block a user