File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 8
8
from flask_gzip import Gzip
9
9
from flask_pyoidc .flask_pyoidc import OIDCAuthentication
10
10
from flask_sqlalchemy import SQLAlchemy
11
- from raven .contrib .flask import Sentry
12
11
13
12
import sentry_sdk
14
13
from sentry_sdk .integrations .flask import FlaskIntegration
30
29
migrate = Migrate (app , db )
31
30
32
31
# Sentry setup
33
- sentry = Sentry (app )
34
32
sentry_sdk .init (
35
33
dsn = app .config ['SENTRY_DSN' ],
36
34
integrations = [FlaskIntegration (), SqlalchemyIntegration ()]
@@ -190,8 +188,7 @@ def route_errors(error, user_dict=None):
190
188
return render_template ('errors.html' ,
191
189
error = error_desc ,
192
190
error_code = code ,
193
- event_id = g .sentry_event_id ,
194
- public_dsn = sentry .client .get_public_dsn ('https' ),
191
+ event_id = sentry_sdk .last_event_id (),
195
192
** data ), int (code )
196
193
197
194
Original file line number Diff line number Diff line change @@ -18,11 +18,9 @@ MarkupSafe~=1.0
18
18
mccabe ~= 0.6.1
19
19
oic ~= 0.11.0
20
20
psycopg2 ~= 2.8.5
21
- pyldap ~= 2.4.45
22
21
pylint ~= 2.6.0
23
22
python-dateutil ~= 2.6.1
24
23
python-editor ~= 1.0.3
25
- raven ~= 6.10.0
26
24
sentry-sdk [flask ]~= 0.19.5
27
25
six ~= 1.12.0
28
26
SQLAlchemy ~= 1.3.22
You can’t perform that action at this time.
0 commit comments