dev: fix sentry profiling rate (#3785)

This commit is contained in:
Nikhil 2024-02-23 21:47:25 +05:30 committed by GitHub
parent 33c99ded77
commit d6a32ef75d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
"""Global Settings""" """Global Settings"""
# Python imports # Python imports
import os import os
import ssl import ssl
@ -307,7 +308,9 @@ if bool(os.environ.get("SENTRY_DSN", False)) and os.environ.get(
traces_sample_rate=1, traces_sample_rate=1,
send_default_pii=True, send_default_pii=True,
environment=os.environ.get("SENTRY_ENVIRONMENT", "development"), environment=os.environ.get("SENTRY_ENVIRONMENT", "development"),
profiles_sample_rate=1.0, profiles_sample_rate=float(
os.environ.get("SENTRY_PROFILE_SAMPLE_RATE", 0.5)
),
) )