Fix performance tracking for sentry and lower samplerate

This commit is contained in:
Georg Krause 2022-08-11 19:18:30 +02:00
parent 800e5e4ee8
commit 879460adaf
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 2 additions and 1 deletions

View File

@ -26,9 +26,10 @@ if env("FUNKWHALE_SENTRY_DSN", default=None) is not None:
sentry_sdk.init(
dsn=env("FUNKWHALE_SENTRY_DSN"),
integrations=[DjangoIntegration()],
traces_sample_rate=env("FUNKWHALE_SENTRY_SR", default="1.0"),
traces_sample_rate=env("FUNKWHALE_SENTRY_SR", default=0.25),
send_default_pii=False,
environment="api",
debug=True
)
"""