sentry-add
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
Untone 2023-11-29 09:14:23 +03:00
parent 4b77cea690
commit cefc77e8e4
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ from ariadne.asgi import GraphQL
from sentry_sdk.integrations.ariadne import AriadneIntegration
from sentry_sdk.integrations.redis import RedisIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from sentry_sdk.integrations.starlette import StarletteIntegration
from starlette.applications import Starlette
from starlette.endpoints import HTTPEndpoint, Request
from starlette.responses import JSONResponse
@ -36,7 +37,7 @@ async def start_up():
sentry_sdk.init(
SENTRY_DSN,
enable_tracing=True,
integrations=[AriadneIntegration(), SqlalchemyIntegration(), RedisIntegration()],
integrations=[StarletteIntegration(), AriadneIntegration(), SqlalchemyIntegration(), RedisIntegration()],
)
except Exception as e:

View File

@ -265,7 +265,7 @@ async def load_shouts_feed(_, info, options):
@query.field("load_shouts_search")
async def load_shouts_search(_, info, text, limit=50, offset=0):
async def load_shouts_search(_, _info, text, limit=50, offset=0):
if text and len(text) > 2:
return SearchService.search(text, limit, offset)
else: