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 { NodeSDK, tracing } from "@opentelemetry/sdk-node";
|
||||||
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
||||||
import { buildResource } from "./resource";
|
import { buildResource } from "./resource";
|
||||||
import { createSentryOtelBridge } from "./sentry-bridge";
|
import { createSentryOtelBridge } from "./sentry-bridge";
|
||||||
|
|
||||||
|
const { BatchSpanProcessor } = tracing;
|
||||||
|
|
||||||
export type InitOtelServerNodeOpts = {
|
export type InitOtelServerNodeOpts = {
|
||||||
/** Sentry DSN. When empty, OTel SDK boots without the Sentry exporter. */
|
/** Sentry DSN. When empty, OTel SDK boots without the Sentry exporter. */
|
||||||
dsn: string;
|
dsn: string;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import type { SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
import type { tracing as sdkTracing, logs as sdkLogs } from "@opentelemetry/sdk-node";
|
||||||
import type { LogRecordProcessor } from "@opentelemetry/sdk-logs";
|
|
||||||
|
type SpanProcessor = sdkTracing.SpanProcessor;
|
||||||
|
type LogRecordProcessor = sdkLogs.LogRecordProcessor;
|
||||||
|
|
||||||
export type SentryOtelBridgeOpts = {
|
export type SentryOtelBridgeOpts = {
|
||||||
/** Sentry DSN. When empty, no Sentry processors are returned (Noop boot). */
|
/** Sentry DSN. When empty, no Sentry processors are returned (Noop boot). */
|
||||||
|
|||||||
Reference in New Issue
Block a user