File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 66import sys
77from flask import Flask , json , make_response
88from flask_celeryext import FlaskCeleryExt
9+ import sentry_sdk
10+ from sentry_sdk .integrations .flask import FlaskIntegration
11+ from sentry_sdk .integrations .celery import CeleryIntegration
12+ from sentry_sdk .integrations .redis import RedisIntegration
13+ from sentry_sdk .integrations .sqlalchemy import SqlalchemyIntegration
14+
915from app .settings import get_settings , get_setts
1016from flask_migrate import Migrate , MigrateCommand
1117from flask_script import Manager
4248from app .views .redis_store import redis_store
4349from app .views .celery_ import celery
4450from app .templates .flask_ext .jinja .filters import init_filters
45- import sentry_sdk
46- from sentry_sdk .integrations .flask import FlaskIntegration
4751
4852
4953BASE_DIR = os .path .dirname (os .path .abspath (__file__ ))
@@ -173,7 +177,8 @@ def create_app():
173177
174178 # sentry
175179 if not app_created and 'SENTRY_DSN' in app .config :
176- sentry_sdk .init (app .config ['SENTRY_DSN' ], integrations = [FlaskIntegration ()])
180+ sentry_sdk .init (app .config ['SENTRY_DSN' ], integrations = [FlaskIntegration (), RedisIntegration (),
181+ CeleryIntegration (), SqlalchemyIntegration ()])
177182
178183 # redis
179184 redis_store .init_app (app )
You can’t perform that action at this time.
0 commit comments