Upgrade sentry-sdk, support performance monitoring

This commit is contained in:
Raphael Michel
2021-05-18 11:02:16 +02:00
parent ad3f6e9077
commit b3e14be6ed
4 changed files with 7 additions and 2 deletions

View File

@@ -350,10 +350,14 @@ application. If you want to use sentry, you need to set a DSN in the configurati
[sentry] [sentry]
dsn=https://<key>:<secret>@sentry.io/<project> dsn=https://<key>:<secret>@sentry.io/<project>
traces_sample_rate=0.5
``dsn`` ``dsn``
You will be given this value by your sentry installation. You will be given this value by your sentry installation.
``traces_sample_rate``
Sample rate for performance monitoring.
Caching Caching
------- -------

View File

@@ -723,6 +723,7 @@ if config.has_option('sentry', 'dsn') and not any(c in sys.argv for c in ('shell
event_level=logging.CRITICAL event_level=logging.CRITICAL
) )
], ],
traces_sample_rate=config.getfloat('sentry', 'traces_sample_rate', fallback=0.0),
environment=urlparse(SITE_URL).netloc, environment=urlparse(SITE_URL).netloc,
release=__version__, release=__version__,
send_default_pii=False, send_default_pii=False,

View File

@@ -33,7 +33,7 @@ csscompressor
django-markup django-markup
markdown==3.3.* markdown==3.3.*
bleach==3.3.* bleach==3.3.*
sentry-sdk==0.14.* sentry-sdk==1.1.*
babel babel
django-i18nfield==1.9.*,>=1.9.1 django-i18nfield==1.9.*,>=1.9.1
django-hijack>=2.1.10,<2.2.0 django-hijack>=2.1.10,<2.2.0

View File

@@ -182,7 +182,7 @@ setup(
'django-markup', 'django-markup',
'markdown==3.3.*', 'markdown==3.3.*',
'bleach==3.3.*', 'bleach==3.3.*',
'sentry-sdk==0.14.*', 'sentry-sdk==1.1.*',
'babel', 'babel',
'paypalrestsdk==1.13.*', 'paypalrestsdk==1.13.*',
'pycparser==2.13', 'pycparser==2.13',