diff --git a/dev-packages/node-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts b/dev-packages/node-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts index 41f688178d1c..fe9cba032344 100644 --- a/dev-packages/node-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts +++ b/dev-packages/node-integration-tests/suites/tracing/requests/http-no-tracing-no-spans/test.ts @@ -32,7 +32,6 @@ describe('outgoing http requests with tracing & spans disabled', () => { await createRunner() .withEnv({ SERVER_URL }) - .ensureNoErrorOutput() .expect({ event: { exception: { @@ -131,7 +130,6 @@ describe('outgoing http requests with tracing & spans disabled', () => { await createRunner() .withEnv({ SERVER_URL }) - .ensureNoErrorOutput() .expect({ event: { exception: { diff --git a/packages/core/src/utils-hoist/baggage.ts b/packages/core/src/utils-hoist/baggage.ts index e3204d8b2105..4a44ee5c35b0 100644 --- a/packages/core/src/utils-hoist/baggage.ts +++ b/packages/core/src/utils-hoist/baggage.ts @@ -1,5 +1,5 @@ import type { DynamicSamplingContext } from '../types-hoist/envelope'; -import { DEBUG_BUILD } from './debug-build'; +import { DEBUG_BUILD } from './../debug-build'; import { isString } from './is'; import { logger } from './logger'; diff --git a/packages/core/src/utils-hoist/debug-build.ts b/packages/core/src/utils-hoist/debug-build.ts deleted file mode 100644 index 60aa50940582..000000000000 --- a/packages/core/src/utils-hoist/debug-build.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare const __DEBUG_BUILD__: boolean; - -/** - * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code. - * - * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking. - */ -export const DEBUG_BUILD = __DEBUG_BUILD__; diff --git a/packages/core/src/utils-hoist/dsn.ts b/packages/core/src/utils-hoist/dsn.ts index 37801096dd22..b3fdf9fb5d08 100644 --- a/packages/core/src/utils-hoist/dsn.ts +++ b/packages/core/src/utils-hoist/dsn.ts @@ -1,5 +1,5 @@ import type { DsnComponents, DsnLike, DsnProtocol } from '../types-hoist/dsn'; -import { DEBUG_BUILD } from './debug-build'; +import { DEBUG_BUILD } from './../debug-build'; import { consoleSandbox, logger } from './logger'; /** Regular expression used to parse a Dsn. */ diff --git a/packages/core/src/utils-hoist/instrument/handlers.ts b/packages/core/src/utils-hoist/instrument/handlers.ts index 672c819e17a6..9d6222662912 100644 --- a/packages/core/src/utils-hoist/instrument/handlers.ts +++ b/packages/core/src/utils-hoist/instrument/handlers.ts @@ -1,4 +1,4 @@ -import { DEBUG_BUILD } from '../debug-build'; +import { DEBUG_BUILD } from '../../debug-build'; import { logger } from '../logger'; import { getFunctionName } from '../stacktrace'; diff --git a/packages/core/src/utils-hoist/logger.ts b/packages/core/src/utils-hoist/logger.ts index 8eefa9f96c39..0c1e8f4d169b 100644 --- a/packages/core/src/utils-hoist/logger.ts +++ b/packages/core/src/utils-hoist/logger.ts @@ -1,6 +1,6 @@ import { getGlobalSingleton } from '../carrier'; import type { ConsoleLevel } from '../types-hoist/instrument'; -import { DEBUG_BUILD } from './debug-build'; +import { DEBUG_BUILD } from './../debug-build'; import { GLOBAL_OBJ } from './worldwide'; /** Prefix for logging strings */ diff --git a/packages/core/src/utils-hoist/object.ts b/packages/core/src/utils-hoist/object.ts index 2710a2b42f9f..366e3f2c5e98 100644 --- a/packages/core/src/utils-hoist/object.ts +++ b/packages/core/src/utils-hoist/object.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { WrappedFunction } from '../types-hoist/wrappedfunction'; +import { DEBUG_BUILD } from './../debug-build'; import { htmlTreeAsString } from './browser'; -import { DEBUG_BUILD } from './debug-build'; import { isElement, isError, isEvent, isInstanceOf, isPrimitive } from './is'; import { logger } from './logger'; import { truncate } from './string'; diff --git a/packages/core/src/utils-hoist/supports.ts b/packages/core/src/utils-hoist/supports.ts index e486d672a625..2336c41b0672 100644 --- a/packages/core/src/utils-hoist/supports.ts +++ b/packages/core/src/utils-hoist/supports.ts @@ -1,4 +1,4 @@ -import { DEBUG_BUILD } from './debug-build'; +import { DEBUG_BUILD } from './../debug-build'; import { logger } from './logger'; import { GLOBAL_OBJ } from './worldwide'; diff --git a/packages/core/test/utils-hoist/dsn.test.ts b/packages/core/test/utils-hoist/dsn.test.ts index 86d7eb0a9552..6d34b599c6c9 100644 --- a/packages/core/test/utils-hoist/dsn.test.ts +++ b/packages/core/test/utils-hoist/dsn.test.ts @@ -1,5 +1,5 @@ import { beforeEach, describe, expect, test, vi } from 'vitest'; -import { DEBUG_BUILD } from '../../src/utils-hoist/debug-build'; +import { DEBUG_BUILD } from '../../src/debug-build'; import { dsnToString, makeDsn } from '../../src/utils-hoist/dsn'; import { logger } from '../../src/utils-hoist/logger';