File tree 6 files changed +18
-5
lines changed
6 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ djangorestframework-camel-case
73
73
74
74
# WSGI servers & monitoring - production oriented
75
75
uwsgi
76
- sentry-sdk # error monitoring
76
+ sentry-sdk[django] # error monitoring
77
77
elastic-apm # Elastic APM integration
78
78
79
79
beautifulsoup4
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ django==4.2.16
146
146
# mozilla-django-oidc
147
147
# mozilla-django-oidc-db
148
148
# notifications-api-common
149
+ # sentry-sdk
149
150
# zgw-consumers
150
151
# zgw-consumers-oas
151
152
django-admin-index==3.1.0
@@ -523,7 +524,7 @@ requests==2.31.0
523
524
# messagebird
524
525
# mozilla-django-oidc
525
526
# zgw-consumers
526
- sentry-sdk==1.38.0
527
+ sentry-sdk[django]==2.19.2
527
528
# via -r requirements/base.in
528
529
simplejson==3.19.2
529
530
# via mail-parser
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ django==4.2.16
238
238
# mozilla-django-oidc
239
239
# mozilla-django-oidc-db
240
240
# notifications-api-common
241
+ # sentry-sdk
241
242
# zgw-consumers
242
243
# zgw-consumers-oas
243
244
django-admin-index==3.1.0
@@ -992,10 +993,11 @@ requests==2.31.0
992
993
# zgw-consumers
993
994
requests-mock==1.12.1
994
995
# via -r requirements/test-tools.in
995
- sentry-sdk==1.38.0
996
+ sentry-sdk[django]==2.19.2
996
997
# via
997
998
# -c requirements/base.txt
998
999
# -r requirements/base.txt
1000
+ # sentry-sdk
999
1001
simplejson==3.19.2
1000
1002
# via
1001
1003
# -c requirements/base.txt
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ django==4.2.16
278
278
# mozilla-django-oidc
279
279
# mozilla-django-oidc-db
280
280
# notifications-api-common
281
+ # sentry-sdk
281
282
# zgw-consumers
282
283
# zgw-consumers-oas
283
284
django-admin-index==3.1.0
@@ -1148,10 +1149,11 @@ requests-mock==1.12.1
1148
1149
# -r requirements/ci.txt
1149
1150
roundrobin==0.0.4
1150
1151
# via locust
1151
- sentry-sdk==1.38.0
1152
+ sentry-sdk[django]==2.19.2
1152
1153
# via
1153
1154
# -c requirements/ci.txt
1154
1155
# -r requirements/ci.txt
1156
+ # sentry-sdk
1155
1157
simplejson==3.19.2
1156
1158
# via
1157
1159
# -c requirements/ci.txt
Original file line number Diff line number Diff line change @@ -70,3 +70,9 @@ def worker_shutdown(**_):
70
70
71
71
72
72
app .steps ["worker" ].add (LivenessProbe )
73
+
74
+
75
+ @app .task
76
+ def trigger_exception ():
77
+ """Trigger an exception for debugging purposes."""
78
+ return 1 / 0
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ def get_sentry_integrations() -> list:
46
46
try :
47
47
from sentry_sdk .integrations import celery
48
48
except DidNotEnable : # happens if the celery import fails by the integration
49
- pass
49
+ logger .warning (
50
+ "Unable to initialize Sentry with Celery integration due to failing import"
51
+ )
50
52
else :
51
53
extra .append (celery .CeleryIntegration ())
52
54
You can’t perform that action at this time.
0 commit comments