fixing-straw
Some checks failed
deploy / deploy (push) Failing after 41s

This commit is contained in:
2023-11-26 13:51:06 +03:00
parent 62c8d51c5d
commit 993f064633
5 changed files with 30 additions and 9 deletions

13
main.py
View File

@@ -2,6 +2,7 @@ import os
import asyncio
from os.path import exists
from sentry_sdk.integrations.strawberry import StrawberryIntegration
from strawberry.asgi import GraphQL
from starlette.applications import Starlette
@@ -27,7 +28,17 @@ async def start_up():
try:
import sentry_sdk
sentry_sdk.init(SENTRY_DSN)
sentry_sdk.init(
SENTRY_DSN,
enable_tracing=True,
integrations=[
StrawberryIntegration(
# Set async_execution to True if you have
# at least one async resolver
async_execution=True
),
],
)
except Exception as e:
print("[sentry] init error")
print(e)