File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11gunicorn==23.0.0
22
3- raven==6.10 .0
3+ sentry-sdk[django]==2.40 .0
44
55# Heroku
66Whitenoise==6.11.0 # 6.4.0 is first version that supports Django 4.2
Original file line number Diff line number Diff line change 11import os
22
33import dj_database_url
4- import raven
4+ import sentry_sdk
5+ from sentry_sdk .integrations .django import DjangoIntegration
56from decouple import Csv
67
78from .base import *
7172SESSION_COOKIE_SECURE = True
7273CSRF_COOKIE_SECURE = True
7374
74- INSTALLED_APPS += [
75- "raven.contrib.django.raven_compat" ,
76- ]
77-
78- RAVEN_CONFIG = {
79- "dsn" : config ( 'SENTRY_DSN' ) ,
80- "release" : config ( 'SOURCE_COMMIT' ) ,
81- }
75+ sentry_sdk . init (
76+ dsn = config ( 'SENTRY_DSN' ) ,
77+ integrations = [ DjangoIntegration ()],
78+ release = config ( 'SOURCE_COMMIT' ),
79+ send_default_pii = True ,
80+ traces_sample_rate = 0.1 ,
81+ profiles_sample_rate = 0.1 ,
82+ )
8283
8384AWS_ACCESS_KEY_ID = config ('AWS_ACCESS_KEY_ID' )
8485AWS_SECRET_ACCESS_KEY = config ('AWS_SECRET_ACCESS_KEY' )
Original file line number Diff line number Diff line change 11import os
22
33import dj_database_url
4- import raven
54from decouple import Csv
65
76from .base import *
You can’t perform that action at this time.
0 commit comments