Skip to content

Commit

Permalink
ops: disable Sentry tracing and replay
Browse files Browse the repository at this point in the history
We don't really use them, so better to save a bit of money for the time being
  • Loading branch information
frankie567 committed Nov 12, 2024
1 parent 0fbee46 commit 32b4498
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions clients/apps/web/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ Sentry.init({
environment: CONFIG.ENVIRONMENT,

// Add optional integrations for additional features
integrations: [Sentry.httpClientIntegration(), Sentry.replayIntegration()],
integrations: [Sentry.httpClientIntegration()],

enableTracing: false,

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 0.1,

// Define how likely Replay events are sampled.
// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,
replaysSessionSampleRate: 0,

// Define how likely Replay events are sampled when an error occurs.
replaysOnErrorSampleRate: 1.0,
replaysOnErrorSampleRate: 0,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
Expand Down
1 change: 1 addition & 0 deletions clients/apps/web/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Sentry.init({
environment: CONFIG.ENVIRONMENT,

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
enableTracing: false,
tracesSampleRate: 0.1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
Expand Down
1 change: 1 addition & 0 deletions clients/apps/web/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Sentry.init({
environment: CONFIG.ENVIRONMENT,

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
enableTracing: false,
tracesSampleRate: 0.1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
Expand Down
1 change: 1 addition & 0 deletions server/polar/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def processor(event: "_types.Event", hint: "_types.Hint") -> "_types.Event":
def configure_sentry() -> None:
sentry_sdk.init(
dsn=settings.SENTRY_DSN,
enable_tracing=False,
traces_sample_rate=0.1,
profiles_sample_rate=0.1,
release=os.environ.get("RELEASE_VERSION", "development"),
Expand Down

0 comments on commit 32b4498

Please sign in to comment.