This commit is contained in:
parent
64db057706
commit
08ed2ae511
|
@ -1,3 +1,7 @@
|
||||||
|
[0.2.17]
|
||||||
|
- httpx -> aiohttp
|
||||||
|
- sentry integrations
|
||||||
|
|
||||||
[0.2.16]
|
[0.2.16]
|
||||||
- resolvers: snake case queries and mutations
|
- resolvers: snake case queries and mutations
|
||||||
- resolvers: fix auth context usage with string user_id
|
- resolvers: fix auth context usage with string user_id
|
||||||
|
|
15
main.py
15
main.py
|
@ -4,6 +4,10 @@ from os.path import exists
|
||||||
|
|
||||||
from ariadne import load_schema_from_path, make_executable_schema
|
from ariadne import load_schema_from_path, make_executable_schema
|
||||||
from ariadne.asgi import GraphQL
|
from ariadne.asgi import GraphQL
|
||||||
|
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
|
||||||
|
from sentry_sdk.integrations.ariadne import AriadneIntegration
|
||||||
|
from sentry_sdk.integrations.redis import RedisIntegration
|
||||||
|
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||||
from starlette.applications import Starlette
|
from starlette.applications import Starlette
|
||||||
|
|
||||||
from services.schema import resolvers
|
from services.schema import resolvers
|
||||||
|
@ -27,7 +31,16 @@ async def start_up():
|
||||||
try:
|
try:
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
|
||||||
sentry_sdk.init(SENTRY_DSN)
|
sentry_sdk.init(
|
||||||
|
SENTRY_DSN,
|
||||||
|
enable_tracing=True,
|
||||||
|
integrations=[
|
||||||
|
AriadneIntegration(),
|
||||||
|
SqlalchemyIntegration(),
|
||||||
|
RedisIntegration(),
|
||||||
|
AioHttpIntegration(),
|
||||||
|
],
|
||||||
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("[sentry] init error")
|
print("[sentry] init error")
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user