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 1
1
gunicorn==23.0.0
2
2
3
- raven==6.10 .0
3
+ sentry-sdk[django]==2.40 .0
4
4
5
5
# Heroku
6
6
Whitenoise==6.11.0 # 6.4.0 is first version that supports Django 4.2
Original file line number Diff line number Diff line change 1
1
import os
2
2
3
3
import dj_database_url
4
- import raven
4
+ import sentry_sdk
5
+ from sentry_sdk .integrations .django import DjangoIntegration
5
6
from decouple import Csv
6
7
7
8
from .base import *
71
72
SESSION_COOKIE_SECURE = True
72
73
CSRF_COOKIE_SECURE = True
73
74
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
+ )
82
83
83
84
AWS_ACCESS_KEY_ID = config ('AWS_ACCESS_KEY_ID' )
84
85
AWS_SECRET_ACCESS_KEY = config ('AWS_SECRET_ACCESS_KEY' )
Original file line number Diff line number Diff line change 1
1
import os
2
2
3
3
import dj_database_url
4
- import raven
5
4
from decouple import Csv
6
5
7
6
from .base import *
You can’t perform that action at this time.
0 commit comments