Skip to content

Commit

Permalink
chore(internal): reduce sentry sample rate across the board (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Aug 19, 2024
1 parent d415ad1 commit 919e04b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
5 changes: 2 additions & 3 deletions packages/ui/docs-bundle/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Sentry.init({
tunnel: assetPrefix == null ? tunnelPath : new URL(tunnelPath, assetPrefix).href,

// Performance Monitoring
tracesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75, // Capture 75% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75,
tracesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25, // Capture 25% of the transactions
profilesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/docs-bundle/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ Sentry.init({
dsn: "https://216ad381a8f652e036b1833af58627e5@o4507138224160768.ingest.us.sentry.io/4507148139495424",

// Performance Monitoring
tracesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75, // Capture 75% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75,
tracesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25, // Capture 25% of the transactions
profilesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
Expand Down
5 changes: 2 additions & 3 deletions packages/ui/docs-bundle/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Sentry.init({
dsn: "https://216ad381a8f652e036b1833af58627e5@o4507138224160768.ingest.us.sentry.io/4507148139495424",

// Performance Monitoring
tracesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75, // Capture 75% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: sentryEnv === "dev" ? 0.5 : 0.75,
tracesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25, // Capture 25% of the transactions
profilesSampleRate: sentryEnv === "dev" ? 0.1 : 0.25,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/docs-bundle/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function register(): Promise<void> {
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
tracesSampleRate: 0.25,

// ...

Expand All @@ -25,7 +25,7 @@ export async function register(): Promise<void> {
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
tracesSampleRate: 0.25,

// ...

Expand Down
5 changes: 2 additions & 3 deletions servers/fdr/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ Sentry.init({
nodeProfilingIntegration(),
],
// Performance Monitoring
tracesSampleRate: config.applicationEnvironment == "prod" ? 0.75 : 0.5, // Capture 75% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: config.applicationEnvironment == "prod" ? 0.75 : 0.5,
tracesSampleRate: config.applicationEnvironment == "prod" ? 0.25 : 0.1, // Capture 25% of the transactions
profilesSampleRate: config.applicationEnvironment == "prod" ? 0.25 : 0.1,
environment: config.applicationEnvironment,
maxValueLength: 1000,
enabled: config.applicationEnvironment === "dev" || config.applicationEnvironment == "prod",
Expand Down

0 comments on commit 919e04b

Please sign in to comment.