Skip to content

Commit e026314

Browse files
committed
fix imports after merge
1 parent 7a557f4 commit e026314

File tree

9 files changed

+22
-26
lines changed

9 files changed

+22
-26
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ import { afterSetupIntegrations } from './integration';
4040
import { setupIntegration, setupIntegrations } from './integration';
4141
import type { Scope } from './scope';
4242
import { updateSession } from './session';
43-
import { getDynamicSamplingContextFromClient } from './tracing/dynamicSamplingContext';
43+
import { getDynamicSamplingContextFromScope } from './tracing/dynamicSamplingContext';
4444
import { createClientReportEnvelope } from './utils-hoist/clientreport';
4545
import { dsnToString, makeDsn } from './utils-hoist/dsn';
4646
import { addItemToEnvelope, createAttachmentEnvelopeItem } from './utils-hoist/envelope';
4747
import { SentryError } from './utils-hoist/error';
4848
import { isParameterizedString, isPlainObject, isPrimitive, isThenable } from './utils-hoist/is';
4949
import { logger } from './utils-hoist/logger';
5050
import { checkOrSetAlreadyCaught, uuid4 } from './utils-hoist/misc';
51-
import { dropUndefinedKeys } from './utils-hoist/object';
5251
import { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './utils-hoist/syncpromise';
5352
import { parseSampleRate } from './utils/parseSampleRate';
5453
import { prepareEvent } from './utils/prepareEvent';

packages/core/src/currentScopes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Client } from '@sentry/types';
33
import { getAsyncContextStrategy } from './asyncContext';
44
import { getMainCarrier } from './carrier';
55
import { Scope as ScopeClass } from './scope';
6+
import { dropUndefinedKeys } from './utils-hoist/object';
67
import { getGlobalSingleton } from './utils-hoist/worldwide';
78

89
/**

packages/core/src/fetch.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types';
2-
import { getClient, getCurrentScope, getIsolationScope } from './currentScopes';
2+
import { getClient } from './currentScopes';
33
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';
44
import { SPAN_STATUS_ERROR, setHttpStatus, startInactiveSpan } from './tracing';
55
import { SentryNonRecordingSpan } from './tracing/sentryNonRecordingSpan';
6-
import {
7-
BAGGAGE_HEADER_NAME,
8-
SENTRY_BAGGAGE_KEY_PREFIX,
9-
dynamicSamplingContextToSentryBaggageHeader,
10-
} from './utils-hoist/baggage';
6+
import { BAGGAGE_HEADER_NAME, SENTRY_BAGGAGE_KEY_PREFIX } from './utils-hoist/baggage';
117
import { isInstanceOf } from './utils-hoist/is';
12-
import { generateSentryTraceHeader } from './utils-hoist/tracing';
138
import { parseUrl } from './utils-hoist/url';
149
import { hasTracingEnabled } from './utils/hasTracingEnabled';
1510
import { getActiveSpan } from './utils/spanUtils';

packages/core/src/tracing/dynamicSamplingContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Client, DynamicSamplingContext, Span } from '@sentry/types';
1+
import type { Client, DynamicSamplingContext, Scope, Span } from '@sentry/types';
22

33
import { DEFAULT_ENVIRONMENT } from '../constants';
44
import { getClient } from '../currentScopes';

packages/core/src/utils/traceData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { SerializedTraceData } from '@sentry/types';
1+
import type { Scope, SerializedTraceData, Span } from '@sentry/types';
22
import { getAsyncContextStrategy } from '../asyncContext';
33
import { getMainCarrier } from '../carrier';
44
import { getClient, getCurrentScope } from '../currentScopes';
55
import { isEnabled } from '../exports';
6-
import { getDynamicSamplingContextFromClient, getDynamicSamplingContextFromSpan } from '../tracing';
6+
import { getDynamicSamplingContextFromScope, getDynamicSamplingContextFromSpan } from '../tracing';
77
import { dynamicSamplingContextToSentryBaggageHeader } from '../utils-hoist/baggage';
88
import { logger } from '../utils-hoist/logger';
99
import { TRACEPARENT_REGEXP, generateSentryTraceHeader } from '../utils-hoist/tracing';
10-
import { getActiveSpan, getRootSpan, spanToTraceHeader } from './spanUtils';
10+
import { getActiveSpan, spanToTraceHeader } from './spanUtils';
1111

1212
/**
1313
* Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation

packages/node/src/sdk/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import type { Tracer } from '@opentelemetry/api';
33
import { trace } from '@opentelemetry/api';
44
import type { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';
55
import type { Scope, ServerRuntimeClientOptions } from '@sentry/core';
6-
import { SDK_VERSION, ServerRuntimeClient, applySdkMetadata } from '@sentry/core';
7-
import { logger } from '@sentry/core';
6+
import { SDK_VERSION, ServerRuntimeClient, applySdkMetadata, logger } from '@sentry/core';
7+
import { getTraceContextForScope } from '@sentry/opentelemetry';
8+
import type { DynamicSamplingContext, TraceContext } from '@sentry/types';
89
import { isMainThread, threadId } from 'worker_threads';
910
import { DEBUG_BUILD } from '../debug-build';
1011
import type { NodeClientOptions } from '../types';

packages/opentelemetry/src/propagator.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ import type { continueTrace } from '@sentry/core';
88
import { getDynamicSamplingContextFromScope } from '@sentry/core';
99
import { getRootSpan } from '@sentry/core';
1010
import { spanToJSON } from '@sentry/core';
11-
import {
12-
getClient,
13-
getCurrentScope,
14-
getDynamicSamplingContextFromClient,
15-
getDynamicSamplingContextFromSpan,
16-
getIsolationScope,
17-
} from '@sentry/core';
11+
import { getClient, getCurrentScope, getDynamicSamplingContextFromSpan, getIsolationScope } from '@sentry/core';
1812
import {
1913
LRUMap,
2014
SENTRY_BAGGAGE_KEY_PREFIX,

packages/opentelemetry/src/utils/getTraceData.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import * as api from '@opentelemetry/api';
2-
import { dropUndefinedKeys } from '@sentry/core';
3-
import type { SerializedTraceData } from '@sentry/types';
2+
import {
3+
dynamicSamplingContextToSentryBaggageHeader,
4+
generateSentryTraceHeader,
5+
getCapturedScopesOnSpan,
6+
} from '@sentry/core';
7+
import type { SerializedTraceData, Span } from '@sentry/types';
8+
import { getInjectionData } from '../propagator';
9+
import { getContextFromScope } from './contextData';
410

511
/**
612
* Otel-specific implementation of `getTraceData`.

packages/remix/src/utils/instrumentServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
startSpan,
1414
withIsolationScope,
1515
} from '@sentry/core';
16-
import { dynamicSamplingContextToSentryBaggageHeader, fill, isNodeEnv, loadModule, logger } from '@sentry/core';
17-
import { continueTrace, getDynamicSamplingContextFromSpan } from '@sentry/opentelemetry';
16+
import { fill, isNodeEnv, loadModule, logger } from '@sentry/core';
17+
import { continueTrace } from '@sentry/opentelemetry';
1818
import type { TransactionSource, WrappedFunction } from '@sentry/types';
1919
import type { Span } from '@sentry/types';
2020

0 commit comments

Comments
 (0)