Reorganize the project for better compatibility with unittests
This commit is contained in:
10
telegram_downloader_bot/telemetry.py
Normal file
10
telegram_downloader_bot/telemetry.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sentry_sdk
|
||||
|
||||
|
||||
def init_telemetry() -> None:
|
||||
sentry_sdk.init(
|
||||
dsn="https://12d7a075d483fc133cde0ed82e72ac45@o4508071875313664.ingest.de.sentry.io/4508075566694480", # noqa: E501
|
||||
traces_sample_rate=1.0,
|
||||
profiles_sample_rate=1.0,
|
||||
enable_tracing=True
|
||||
)
|
||||
Reference in New Issue
Block a user