diff --git a/packages/bundler-plugin-core/src/index.ts b/packages/bundler-plugin-core/src/index.ts index 0ad78019..ee6fc715 100644 --- a/packages/bundler-plugin-core/src/index.ts +++ b/packages/bundler-plugin-core/src/index.ts @@ -248,7 +248,7 @@ export function sentryUnpluginFactory({ replacementValues["__SENTRY_DEBUG__"] = false; } if (bundleSizeOptimizations.excludeTracing) { - replacementValues["__SENTRY_TRACE__"] = false; + replacementValues["__SENTRY_TRACING__"] = false; } if (bundleSizeOptimizations.excludeReplayCanvas) { replacementValues["__RRWEB_EXCLUDE_CANVAS__"] = true; diff --git a/packages/bundler-plugin-core/src/types.ts b/packages/bundler-plugin-core/src/types.ts index b8ae99cf..33a03e58 100644 --- a/packages/bundler-plugin-core/src/types.ts +++ b/packages/bundler-plugin-core/src/types.ts @@ -447,7 +447,7 @@ export type IncludeEntry = { export interface SentrySDKBuildFlags extends Record { __SENTRY_DEBUG__?: boolean; - __SENTRY_TRACE__?: boolean; + __SENTRY_TRACING__?: boolean; __RRWEB_EXCLUDE_CANVAS__?: boolean; __RRWEB_EXCLUDE_IFRAME__?: boolean; __RRWEB_EXCLUDE_SHADOW_DOM__?: boolean; diff --git a/packages/integration-tests/fixtures/bundle-size-optimizations/input/bundle2.js b/packages/integration-tests/fixtures/bundle-size-optimizations/input/bundle2.js index e6c49f94..ac85947c 100644 --- a/packages/integration-tests/fixtures/bundle-size-optimizations/input/bundle2.js +++ b/packages/integration-tests/fixtures/bundle-size-optimizations/input/bundle2.js @@ -1,6 +1,6 @@ console.log({ debug: __SENTRY_DEBUG__ ? "a" : "b", - trace: __SENTRY_TRACE__ ? "a" : "b", + trace: __SENTRY_TRACING__ ? "a" : "b", replayCanvas: __RRWEB_EXCLUDE_CANVAS__ ? "a" : "b", replayIframe: __RRWEB_EXCLUDE_IFRAME__ ? "a" : "b", replayShadowDom: __RRWEB_EXCLUDE_SHADOW_DOM__ ? "a" : "b",