feat: with glitchtip in main.py
All checks were successful
Deploy on push / deploy (push) Successful in 34s
All checks were successful
Deploy on push / deploy (push) Successful in 34s
This commit is contained in:
parent
232f41b905
commit
1970b197a5
10
main.py
10
main.py
|
@ -1,4 +1,6 @@
|
||||||
import os
|
import os
|
||||||
|
import sentry_sdk
|
||||||
|
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
|
|
||||||
|
@ -13,6 +15,14 @@ from services.viewed import ViewedStorage
|
||||||
from services.webhook import WebhookEndpoint
|
from services.webhook import WebhookEndpoint
|
||||||
from settings import DEV_SERVER_PID_FILE_NAME, MODE
|
from settings import DEV_SERVER_PID_FILE_NAME, MODE
|
||||||
|
|
||||||
|
# Initialize GlitchTip SDK with DSN from environment variable
|
||||||
|
GLITCHTIP_DSN = os.getenv('GLITCHTIP_DSN')
|
||||||
|
sentry_sdk.init(
|
||||||
|
dsn=GLITCHTIP_DSN,
|
||||||
|
traces_sample_rate=1.0,
|
||||||
|
integrations=[SentryAsgiMiddleware()]
|
||||||
|
)
|
||||||
|
|
||||||
import_module('resolvers')
|
import_module('resolvers')
|
||||||
schema = make_executable_schema(load_schema_from_path('schema/'), resolvers)
|
schema = make_executable_schema(load_schema_from_path('schema/'), resolvers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user