Skip to content

Commit c8832af

Browse files
committed
ref: rename tracing treeshake option for clarity
1 parent ab62e3e commit c8832af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/nextjs/src/config/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export type SentryBuildWebpackOptions = {
116116
/**
117117
* Setting this to true will treeshake any SDK code that is related to tracing and performance monitoring.
118118
*/
119-
tracing?: boolean;
119+
removeTracing?: boolean;
120120

121121
/**
122122
* Setting this flag to `true` will tree shake any SDK code related to capturing iframe content with Session Replay.

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ function setupTreeshakingFromConfig(
925925
defines.__SENTRY_DEBUG__ = false;
926926
}
927927

928-
if (userSentryOptions.webpack?.treeshake?.tracing) {
928+
if (userSentryOptions.webpack?.treeshake?.removeTracing) {
929929
defines.__SENTRY_TRACING__ = false;
930930
}
931931

0 commit comments

Comments
 (0)