Add sentry
Some checks failed
Build Docker image / test (push) Failing after 38s
Build Docker image / build (push) Has been skipped

This commit is contained in:
Roman Krček
2024-10-06 14:06:42 +02:00
parent 237d6bb22c
commit c549ef71f0
2 changed files with 9 additions and 0 deletions

View File

@@ -3,3 +3,4 @@ pyrogram==2.0.106
tiktok_downloader==0.3.5
uvloop==0.19.0
tgcrypto==1.2.5
sentry-sdk==2.15.0

View File

@@ -2,6 +2,7 @@ import datetime
import integv
import os
import re
import sentry_sdk
import uvloop
from pyrogram import Client, filters
@@ -21,6 +22,13 @@ log = logger.configure_logger(LOG_LEVEL)
uvloop.install()
sentry_sdk.init(
dsn="https://12d7a075d483fc133cde0ed82e72ac45@o4508071875313664.ingest.de.sentry.io/4508075566694480",
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
enable_tracing=True
)
app = Client("downloader_bot", api_id=API_ID,
api_hash=API_HASH, bot_token=BOT_TOKEN)