We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef9ac1 commit 00eb41fCopy full SHA for 00eb41f
API/api_worker.py
@@ -48,6 +48,20 @@
48
# Standard library imports
49
import zipfile
50
51
+# Sentry initialization
52
+# Reader imports
53
+from src.config import SENTRY_DSN, SENTRY_RATE
54
+
55
+if SENTRY_DSN:
56
+ # Third party imports
57
+ import sentry_sdk
58
+ sentry_sdk.init(
59
+ dsn=SENTRY_DSN,
60
+ traces_sample_rate=SENTRY_RATE,
61
+ )
62
63
64
65
celery = Celery("Raw Data API")
66
celery.conf.broker_url = celery_broker_uri
67
celery.conf.result_backend = celery_backend
0 commit comments