summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-11 01:28:48 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-11 01:28:48 +0100
commit2cc8b3c389502b968aa14364c5a5e40accb8b028 (patch)
treec47b8eff85714498f3ddddc55f31abd4c2ca1476
parente1716ee419c218f879c046917eaeb1e566230b0e (diff)
Reduce trace sampling rate
This change reduces the trace sampling rate of the Sentry SDK to prevent reaching the limits of the free Sentry subscription.
-rwxr-xr-xapi/main.py2
-rw-r--r--frontend/src/index.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/main.py b/api/main.py
index ba79d9ce..5c6dac31 100755
--- a/api/main.py
+++ b/api/main.py
@@ -28,7 +28,7 @@ if 'SENTRY_DSN' in os.environ:
sentry_sdk.init(
integrations=[FlaskIntegration()],
- traces_sample_rate=0.5
+ traces_sample_rate=0.1
)
# Set up database if not testing
diff --git a/frontend/src/index.js b/frontend/src/index.js
index fe119dfb..3517147e 100644
--- a/frontend/src/index.js
+++ b/frontend/src/index.js
@@ -17,7 +17,7 @@ setupSocketConnection(() => {
environment: process.env.NODE_ENV,
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
- tracesSampleRate: 0.5,
+ tracesSampleRate: 0.1,
})
}