diff --git a/main.py b/main.py index 5496c0c0..9495cd6a 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ import os +import sentry_sdk from importlib import import_module from os.path import exists -import sentry_sdk from ariadne import load_schema_from_path, make_executable_schema from ariadne.asgi import GraphQL @@ -45,8 +45,7 @@ async def start_up(): if MODE == 'production': # sentry monitoring try: - import sentry_sdk - + sentry_sdk.init( SENTRY_DSN, enable_tracing=True,