aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2024-04-14 13:19:08 +0100
committerGravatar GitHub <[email protected]>2024-04-14 13:19:08 +0100
commit051d38ff76f3fae6b5dc75fe706e66812b323145 (patch)
treebb2eab828e67075094e8ed58673c13b30d2b688a
parentBump ruff from 0.3.5 to 0.3.7 (#1511) (diff)
Replace sentry experiment with standard version and add AsyncioIntegration (#1512)
-rw-r--r--bot/log.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/log.py b/bot/log.py
index 9ebc89a7..d8b798e6 100644
--- a/bot/log.py
+++ b/bot/log.py
@@ -7,6 +7,7 @@ from pathlib import Path
import coloredlogs
import sentry_sdk
from pydis_core.utils import logging as core_logging
+from sentry_sdk.integrations.asyncio import AsyncioIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration
@@ -62,13 +63,12 @@ def setup_sentry() -> None:
dsn=Client.sentry_dsn,
integrations=[
sentry_logging,
+ AsyncioIntegration(),
RedisIntegration(),
],
release=f"bot@{GIT_SHA}",
traces_sample_rate=0.5,
- _experiments={
- "profiles_sample_rate": 0.5,
- },
+ profiles_sample_rate=0.5,
)