Skip to content

Commit 98fb43f

Browse files
authored
internal: Replace sentry/utils by sentry/core (#4352)
1 parent 9f0f6c8 commit 98fb43f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+100
-99
lines changed

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"devDependencies": {
1414
"@babel/preset-env": "^7.25.3",
1515
"@babel/preset-typescript": "^7.18.6",
16+
"@sentry/core": "8.41.0",
1617
"@sentry/react-native": "6.4.0",
17-
"@sentry/utils": "8.41.0",
1818
"@types/node": "^20.9.3",
1919
"@types/react": "^18.2.64",
2020
"appium": "2.4.1",

dev-packages/e2e-tests/patch-scripts/rn.patch.app.build.gradle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const { argv } = require('process');
55

66
const parseArgs = require('minimist');
7-
const { logger } = require('@sentry/utils');
7+
const { logger } = require('@sentry/core');
88
logger.enable();
99

1010
const args = parseArgs(argv.slice(2));

dev-packages/e2e-tests/patch-scripts/rn.patch.app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path');
55
const { argv, env } = require('process');
66

77
const parseArgs = require('minimist');
8-
const { logger } = require('@sentry/utils');
8+
const { logger } = require('@sentry/core');
99
logger.enable();
1010

1111
const SENTRY_RELEASE = env.SENTRY_RELEASE;

dev-packages/e2e-tests/patch-scripts/rn.patch.gradle.properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const { argv } = require('process');
55

66
const parseArgs = require('minimist');
7-
const { logger } = require('@sentry/utils');
7+
const { logger } = require('@sentry/core');
88
logger.enable();
99

1010
const args = parseArgs(argv.slice(2));

dev-packages/e2e-tests/patch-scripts/rn.patch.metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const { argv } = require('process');
55

66
const parseArgs = require('minimist');
7-
const { logger } = require('@sentry/utils');
7+
const { logger } = require('@sentry/core');
88
logger.enable();
99

1010
const args = parseArgs(argv.slice(2));

dev-packages/e2e-tests/patch-scripts/rn.patch.podfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const { argv } = require('process');
55

66
const parseArgs = require('minimist');
7-
const { logger } = require('@sentry/utils');
7+
const { logger } = require('@sentry/core');
88
logger.enable();
99

1010
const args = parseArgs(argv.slice(2));

dev-packages/e2e-tests/patch-scripts/rn.patch.xcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { argv } = require('process');
66
const xcode = require('xcode');
77
const parseArgs = require('minimist');
88
const semver = require('semver');
9-
const { logger } = require('@sentry/utils');
9+
const { logger } = require('@sentry/core');
1010
logger.enable();
1111

1212
const args = parseArgs(argv.slice(2));

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test:sdk": "npx jest",
3434
"test:tools": "npx jest --config jest.config.tools.js",
3535
"test:watch": "npx jest --watch",
36-
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/react @sentry/types @sentry/utils",
36+
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/react @sentry/types",
3737
"fix": "npx run-s fix:eslint fix:prettier",
3838
"fix:eslint": "eslint --config .eslintrc.js --fix .",
3939
"fix:prettier": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write \"{src,test,scripts,plugin/src}/**/**.ts\"",

packages/core/src/js/breadcrumb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { severityLevelFromString } from '@sentry/core';
12
import type { Breadcrumb, SeverityLevel } from '@sentry/types';
2-
import { severityLevelFromString } from '@sentry/utils';
33

44
export const DEFAULT_BREADCRUMB_LEVEL: SeverityLevel = 'info';
55

packages/core/src/js/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { eventFromException, eventFromMessage } from '@sentry/browser';
2-
import { BaseClient } from '@sentry/core';
2+
import { BaseClient, dateTimestampInSeconds, logger, SentryError } from '@sentry/core';
33
import type {
44
ClientReportEnvelope,
55
ClientReportItem,
@@ -11,7 +11,6 @@ import type {
1111
TransportMakeRequestResponse,
1212
UserFeedback,
1313
} from '@sentry/types';
14-
import { dateTimestampInSeconds, logger, SentryError } from '@sentry/utils';
1514
import { Alert } from 'react-native';
1615

1716
import { getDevServer } from './integrations/debugsymbolicatorutils';

packages/core/src/js/integrations/debugsymbolicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { Event, EventHint, Exception, Integration, StackFrame as SentryStackFrame } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import type { ExtendedError } from '../utils/error';
55
import { getFramesToPop, isErrorLike } from '../utils/error';

packages/core/src/js/integrations/debugsymbolicatorutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { StackFrame as SentryStackFrame } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { ReactNativeLibraries } from '../utils/rnlibraries';
55
import { createStealthXhr, XHR_READYSTATE_DONE } from '../utils/xhr';

packages/core/src/js/integrations/devicecontext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable complexity */
2+
import { logger, severityLevelFromString } from '@sentry/core';
23
import type { Client, Event, EventHint, Integration } from '@sentry/types';
3-
import { logger, severityLevelFromString } from '@sentry/utils';
44
import { AppState } from 'react-native';
55

66
import { breadcrumbFromObject } from '../breadcrumb';

packages/core/src/js/integrations/modulesloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { Event, Integration } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { NATIVE } from '../wrapper';
55

packages/core/src/js/integrations/nativelinkederrors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { exceptionFromError } from '@sentry/browser';
2+
import { isInstanceOf, isPlainObject, isString } from '@sentry/core';
23
import type {
34
Client,
45
DebugImage,
@@ -10,7 +11,6 @@ import type {
1011
StackFrame,
1112
StackParser,
1213
} from '@sentry/types';
13-
import { isInstanceOf, isPlainObject, isString } from '@sentry/utils';
1414

1515
import type { NativeStackFrames } from '../NativeRNSentry';
1616
import { NATIVE } from '../wrapper';

packages/core/src/js/integrations/reactnativeerrorhandlers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { captureException, getClient, getCurrentScope } from '@sentry/core';
1+
import { addExceptionMechanism, captureException, getClient, getCurrentScope, logger } from '@sentry/core';
22
import type { EventHint, Integration, SeverityLevel } from '@sentry/types';
3-
import { addExceptionMechanism, logger } from '@sentry/utils';
43

54
import { createSyntheticError, isErrorLike } from '../utils/error';
65
import { RN_GLOBAL_OBJ } from '../utils/worldwide';

packages/core/src/js/integrations/reactnativeerrorhandlersutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22

33
import { ReactNativeLibraries } from '../utils/rnlibraries';
44
import { RN_GLOBAL_OBJ } from '../utils/worldwide';

packages/core/src/js/integrations/sdkinfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { Event, Integration, Package, SdkInfo as SdkInfoType } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { isExpoGo, notWeb } from '../utils/environment';
55
import { SDK_NAME, SDK_PACKAGE_NAME, SDK_VERSION } from '../version';

packages/core/src/js/integrations/spotlight.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger, serializeEnvelope } from '@sentry/core';
12
import type { BaseTransportOptions, Client, ClientOptions, Envelope, Integration } from '@sentry/types';
2-
import { logger, serializeEnvelope } from '@sentry/utils';
33

44
import { ReactNativeLibraries } from '../utils/rnlibraries';
55
import { createStealthXhr, XHR_READYSTATE_DONE } from '../utils/xhr';

packages/core/src/js/integrations/viewhierarchy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { Attachment, Event, EventHint, Integration } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { NATIVE } from '../wrapper';
55

packages/core/src/js/profiling/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { makeFifoCache } from '@sentry/utils';
1+
import { makeFifoCache } from '@sentry/core';
22

33
import type { AndroidCombinedProfileEvent, CombinedProfileEvent } from './types';
44

packages/core/src/js/profiling/convertHermesProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { FrameId, StackId, ThreadCpuFrame, ThreadCpuSample, ThreadCpuStack, ThreadId } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { MAX_PROFILE_DURATION_MS } from './constants';
55
import type * as Hermes from './hermes';

packages/core/src/js/profiling/debugid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { GLOBAL_OBJ, logger } from '@sentry/core';
12
import type { DebugImage } from '@sentry/types';
2-
import { GLOBAL_OBJ, logger } from '@sentry/utils';
33

44
import { DEFAULT_BUNDLE_NAME } from './hermes';
55

packages/core/src/js/profiling/integration.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable complexity */
2-
import { getActiveSpan, getClient, spanIsSampled } from '@sentry/core';
2+
import { getActiveSpan, getClient, logger, spanIsSampled, uuid4 } from '@sentry/core';
33
import type { Envelope, Event, Integration, Span, ThreadCpuProfile } from '@sentry/types';
4-
import { logger, uuid4 } from '@sentry/utils';
54
import { Platform } from 'react-native';
65

76
import type { ReactNativeClient } from '../client';

packages/core/src/js/profiling/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable complexity */
2+
import { forEachEnvelopeItem, logger } from '@sentry/core';
23
import type { Envelope, Event, ThreadCpuProfile } from '@sentry/types';
3-
import { forEachEnvelopeItem, logger } from '@sentry/utils';
44

55
import { getDefaultEnvironment } from '../utils/environment';
66
import { getDebugMetadata } from './debugid';

packages/core/src/js/replay/CustomMask.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22
import * as React from 'react';
33
import type { HostComponent, ViewProps } from 'react-native';
44
import { UIManager, View } from 'react-native';

packages/core/src/js/replay/mobilereplay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger } from '@sentry/core';
12
import type { Client, DynamicSamplingContext, Event, Integration } from '@sentry/types';
2-
import { logger } from '@sentry/utils';
33

44
import { isHardCrash } from '../misc';
55
import { hasHooks } from '../utils/clientutils';

packages/core/src/js/replay/xhrUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { dropUndefinedKeys } from '@sentry/core';
12
import type { Breadcrumb, BreadcrumbHint, SentryWrappedXMLHttpRequest, XhrBreadcrumbHint } from '@sentry/types';
2-
import { dropUndefinedKeys } from '@sentry/utils';
33

44
import type { RequestBody } from './networkUtils';
55
import { getBodySize, parseContentLengthHeader } from './networkUtils';

packages/core/src/js/sdk.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* eslint-disable complexity */
2-
import { captureFeedback, getClient, getGlobalScope,getIntegrationsToSetup, getIsolationScope,initAndBind, withScope as coreWithScope } from '@sentry/core';
2+
import { captureFeedback, getClient, getGlobalScope, getIntegrationsToSetup, getIsolationScope, initAndBind, logger, stackParserFromStackParserOptions, withScope as coreWithScope } from '@sentry/core';
33
import {
44
defaultStackParser,
55
makeFetchTransport,
66
} from '@sentry/react';
77
import type { Breadcrumb, BreadcrumbHint, Integration, Scope, SendFeedbackParams, UserFeedback } from '@sentry/types';
8-
import { logger, stackParserFromStackParserOptions } from '@sentry/utils';
98
import * as React from 'react';
109

1110
import { ReactNativeClient } from './client';

packages/core/src/js/tools/ModulesCollector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
33
import { posix, sep } from 'path';
44

packages/core/src/js/tools/enableLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22

33
/**
44
* Enables debug logger when SENTRY_LOG_LEVEL=debug.

packages/core/src/js/tools/metroMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { addContextToFrame, logger } from '@sentry/core';
12
import type { StackFrame } from '@sentry/types';
2-
import { addContextToFrame, logger } from '@sentry/utils';
33
import { readFile } from 'fs';
44
import type { IncomingMessage, ServerResponse } from 'http';
55
import type { InputConfigT, Middleware } from 'metro-config';

packages/core/src/js/tools/metroconfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22
import type { MetroConfig, MixedOutput, Module, ReadOnlyGraph } from 'metro';
33
import type { CustomResolutionContext, CustomResolver, Resolution } from 'metro-resolver';
44
import * as process from 'process';
@@ -246,8 +246,8 @@ export function withSentryFramesCollapsed(config: MetroConfig): MetroConfig {
246246
const originalCustomizeFrame = config.symbolicator?.customizeFrame;
247247
const collapseSentryInternalFrames = (frame: MetroFrame): boolean =>
248248
typeof frame.file === 'string' &&
249-
(frame.file.includes('node_modules/@sentry/utils/cjs/instrument.js') ||
250-
frame.file.includes('node_modules/@sentry/utils/cjs/logger.js'));
249+
(frame.file.includes('node_modules/@sentry/core/cjs/instrument.js') ||
250+
frame.file.includes('node_modules/@sentry/core/cjs/logger.js'));
251251

252252
const customizeFrame = (frame: MetroFrame): MetroCustomizeFrameReturnValue => {
253253
const originalOrSentryCustomizeFrame = (

packages/core/src/js/tools/sentryBabelTransformerUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@sentry/utils';
1+
import { logger } from '@sentry/core';
22
import * as process from 'process';
33

44
import type { BabelTransformer } from './vendor/metro/metroBabelTransformer';

packages/core/src/js/touchevents.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { addBreadcrumb, getClient, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
1+
import { addBreadcrumb, dropUndefinedKeys, getClient, logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
22
import type { SeverityLevel } from '@sentry/types';
3-
import { dropUndefinedKeys, logger } from '@sentry/utils';
43
import * as React from 'react';
54
import type { GestureResponderEvent } from 'react-native';
65
import { StyleSheet, View } from 'react-native';

packages/core/src/js/tracing/gesturetracing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { addBreadcrumb, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
1+
import { addBreadcrumb, logger, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
22
import type { Breadcrumb } from '@sentry/types';
3-
import { logger } from '@sentry/utils';
43

54
import { startUserInteractionSpan } from './integrations/userInteraction';
65
import { UI_ACTION } from './ops';

packages/core/src/js/tracing/integrations/appStart.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ import {
33
getCapturedScopesOnSpan,
44
getClient,
55
getCurrentScope,
6+
logger,
67
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
78
SentryNonRecordingSpan,
89
startInactiveSpan,
10+
timestampInSeconds,
911
} from '@sentry/core';
1012
import type { Client, Event, Integration, SpanJSON, TransactionEvent } from '@sentry/types';
11-
import { logger, timestampInSeconds } from '@sentry/utils';
1213

1314
import {
1415
APP_START_COLD as APP_START_COLD_MEASUREMENT,

packages/core/src/js/tracing/integrations/nativeFrames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { logger, timestampInSeconds } from '@sentry/core';
12
import type { Client, Event, Integration, Measurements, MeasurementUnit, Span } from '@sentry/types';
2-
import { logger, timestampInSeconds } from '@sentry/utils';
33

44
import type { NativeFramesResponse } from '../../NativeRNSentry';
55
import { AsyncExpiringMap } from '../../utils/AsyncExpiringMap';

packages/core/src/js/tracing/integrations/stalltracking.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable max-lines */
2-
import { getRootSpan, spanToJSON } from '@sentry/core';
2+
import { getRootSpan, logger, spanToJSON, timestampInSeconds } from '@sentry/core';
33
import type { Client, Integration, Measurements, MeasurementUnit, Span } from '@sentry/types';
4-
import { logger, timestampInSeconds } from '@sentry/utils';
54
import type { AppStateStatus } from 'react-native';
65
import { AppState } from 'react-native';
76

packages/core/src/js/tracing/integrations/userInteraction.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
import { getActiveSpan, getClient, getCurrentScope, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, spanToJSON } from '@sentry/core';
1+
import {
2+
getActiveSpan,
3+
getClient,
4+
getCurrentScope,
5+
logger,
6+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
7+
spanToJSON,
8+
} from '@sentry/core';
29
import type { Integration, Span, StartSpanOptions } from '@sentry/types';
3-
import { logger } from '@sentry/utils';
410

511
import type { ReactNativeClientOptions } from '../../options';
612
import { onlySampleIfChildSpans } from '../onSpanEndUtils';

packages/core/src/js/tracing/onSpanEndUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { getSpanDescendants, SPAN_STATUS_ERROR, spanToJSON } from '@sentry/core';
1+
import { getSpanDescendants, logger, SPAN_STATUS_ERROR, spanToJSON } from '@sentry/core';
22
import type { Client, Span } from '@sentry/types';
3-
import { logger } from '@sentry/utils';
43
import type { AppStateStatus } from 'react-native';
54
import { AppState } from 'react-native';
65

packages/core/src/js/tracing/reactnativeprofiler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { timestampInSeconds } from '@sentry/core';
12
import { getClient, Profiler } from '@sentry/react';
2-
import { timestampInSeconds } from '@sentry/utils';
33

44
import { createIntegration } from '../integrations/factory';
55
import { _captureAppStart, _setRootComponentCreationTimestampMs } from '../tracing/integrations/appStart';

packages/core/src/js/tracing/reactnavigation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ import {
33
addBreadcrumb,
44
getActiveSpan,
55
getClient,
6+
isPlainObject,
7+
logger,
68
SEMANTIC_ATTRIBUTE_SENTRY_OP,
79
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
810
SPAN_STATUS_OK,
911
spanToJSON,
1012
startInactiveSpan,
13+
timestampInSeconds,
1114
} from '@sentry/core';
1215
import type { Client, Integration, Span } from '@sentry/types';
13-
import { isPlainObject, logger, timestampInSeconds } from '@sentry/utils';
1416

1517
import type { NewFrameEvent } from '../utils/sentryeventemitter';
1618
import type { SentryEventEmitterFallback } from '../utils/sentryeventemitterfallback';

packages/core/src/js/tracing/span.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {
2+
generatePropagationContext,
23
getActiveSpan,
34
getClient,
45
getCurrentScope,
6+
logger,
57
SEMANTIC_ATTRIBUTE_SENTRY_OP,
68
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
79
SentryNonRecordingSpan,
@@ -10,7 +12,6 @@ import {
1012
startIdleSpan as coreStartIdleSpan,
1113
} from '@sentry/core';
1214
import type { Client, Scope, Span, StartSpanOptions } from '@sentry/types';
13-
import { generatePropagationContext, logger } from '@sentry/utils';
1415

1516
import { isRootSpan } from '../utils/span';
1617
import { adjustTransactionDuration, cancelInBackground } from './onSpanEndUtils';

0 commit comments

Comments
 (0)