feat: add Sentry Reddis perfomance monitoring
This commit is contained in:
parent
f73c2094d9
commit
405337da27
6
main.py
6
main.py
|
@ -26,7 +26,11 @@ schema = make_executable_schema(load_schema_from_path('schemas/core.graphql'), r
|
||||||
async def start_up():
|
async def start_up():
|
||||||
print(f'[main] starting in {MODE} mode')
|
print(f'[main] starting in {MODE} mode')
|
||||||
|
|
||||||
await redis.connect()
|
with sentry_sdk.start_transaction(
|
||||||
|
op="task",
|
||||||
|
name="Redis Connection"
|
||||||
|
):
|
||||||
|
await redis.connect()
|
||||||
|
|
||||||
# start viewed service
|
# start viewed service
|
||||||
await ViewedStorage.init()
|
await ViewedStorage.init()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user