Skip to content

Commit e66a724

Browse files
committed
ref: rename tracing treeshake option for clarity
1 parent 62fe260 commit e66a724

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
@@ -928,7 +928,7 @@ function setupTreeshakingFromConfig(
928928
defines.__SENTRY_DEBUG__ = false;
929929
}
930930

931-
if (userSentryOptions.webpack?.treeshake?.tracing) {
931+
if (userSentryOptions.webpack?.treeshake?.removeTracing) {
932932
defines.__SENTRY_TRACING__ = false;
933933
}
934934

0 commit comments

Comments
 (0)