Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Reduced Sentry trace sampling rate in production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Apr 27, 2024
1 parent 75d3ba6 commit 49ea1f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sentry.client.config.ts
@@ -1,15 +1,15 @@
import { init, Replay } from "@sentry/nextjs";
import { init, replayIntegration } from "@sentry/nextjs";

init( {
dsn: process.env.SENTRY_DSN,
debug: false,
integrations: [
new Replay( {
replayIntegration( {
maskAllText: true,
blockAllMedia: true
} )
],
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.01,
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1
} );
2 changes: 1 addition & 1 deletion sentry.edge.config.ts
Expand Up @@ -3,5 +3,5 @@ import { init } from "@sentry/nextjs";
init( {
dsn: process.env.SENTRY_DSN,
debug: false,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.01
} );
2 changes: 1 addition & 1 deletion sentry.server.config.ts
Expand Up @@ -3,5 +3,5 @@ import { init } from "@sentry/nextjs";
init( {
dsn: process.env.SENTRY_DSN,
debug: false,
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.01
} );

0 comments on commit 49ea1f1

Please sign in to comment.