Skip to content

Scheduling infrastructure for absolutely everyone.

chore: Attempt reduction of Sentry size by treeshaking tracing (#15527)

Alex van Andel3174b55e213b
diff --git a/apps/api/v1/instrumentation.ts b/apps/api/v1/instrumentation.ts
index f3f5932bbd9..79040c9dbb1 100644
--- a/apps/api/v1/instrumentation.ts
+++ b/apps/api/v1/instrumentation.ts
@@ -4,8 +4,6 @@ export function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
- // reduce sample rate to 10% on production
- tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1,
});
}
diff --git a/apps/web/instrumentation.ts b/apps/web/instrumentation.ts
index f3f5932bbd9..79040c9dbb1 100644
--- a/apps/web/instrumentation.ts
+++ b/apps/web/instrumentation.ts
@@ -4,8 +4,6 @@ export function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
- // reduce sample rate to 10% on production
- tracesSampleRate: process.env.NODE_ENV !== "production" ? 1.0 : 0.1,
});
}
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 289c645ec11..4587fd03a01 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -221,6 +221,13 @@ const nextConfig = {
);
}
+ config.plugins.push(
+ new webpack.DefinePlugin({
+ __SENTRY_DEBUG__: false,
+ __SENTRY_TRACING__: false,
+ })
+ );
+
config.plugins.push(
new CopyWebpackPlugin({
patterns: [