remove sentry AioHttpIntegration
This commit is contained in:
parent
ef45e28ab3
commit
184397dc92
12
server.py
12
server.py
|
@ -1,10 +1,10 @@
|
||||||
|
import os
|
||||||
|
import ssl
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
import arrow
|
import arrow
|
||||||
import flask_profiler
|
import flask_profiler
|
||||||
import os
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
import ssl
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Flask,
|
Flask,
|
||||||
redirect,
|
redirect,
|
||||||
|
@ -19,7 +19,6 @@ from flask_admin import Admin
|
||||||
from flask_cors import cross_origin, CORS
|
from flask_cors import cross_origin, CORS
|
||||||
from flask_debugtoolbar import DebugToolbarExtension
|
from flask_debugtoolbar import DebugToolbarExtension
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
|
|
||||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
@ -75,12 +74,7 @@ from app.oauth.base import oauth_bp
|
||||||
if SENTRY_DSN:
|
if SENTRY_DSN:
|
||||||
LOG.d("enable sentry")
|
LOG.d("enable sentry")
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn=SENTRY_DSN,
|
dsn=SENTRY_DSN, integrations=[FlaskIntegration(), SqlalchemyIntegration(),],
|
||||||
integrations=[
|
|
||||||
FlaskIntegration(),
|
|
||||||
SqlalchemyIntegration(),
|
|
||||||
AioHttpIntegration(),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# the app is served behin nginx which uses http and not https
|
# the app is served behin nginx which uses http and not https
|
||||||
|
|
Loading…
Reference in a new issue