Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf: trim Sentry browser instrumentation

Richie McIlroy22bb2d973a44
diff --git a/apps/web/instrumentation-client.ts b/apps/web/instrumentation-client.ts
index ac080daac..408230ef5 100644
--- a/apps/web/instrumentation-client.ts
+++ b/apps/web/instrumentation-client.ts
@@ -10,6 +10,10 @@ if (dsn) {
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 0,
maxBreadcrumbs: 30,
+ integrations: (integrations) =>
+ integrations.filter(
+ ({ name }) => name !== "BrowserTracing" && name !== "BrowserSession",
+ ),
});
}
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index ddd1f378b..7d7d1dae6 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -163,4 +163,5 @@ export default withSentryConfig(withWorkflow(nextConfig), {
telemetry: false,
silent: !process.env.CI,
sourcemaps: { disable: !process.env.SENTRY_AUTH_TOKEN },
+ webpack: { treeshake: { removeTracing: true } },
});