From 365260ec44eb0f8ff7fc470556fe748a29f109a7 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Tue, 24 Jun 2025 11:57:14 -0300 Subject: [PATCH] Creating an environment variable for sentry dsn. --- dot-env.template | 5 ++++- examples/sentry-metrics/bot.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dot-env.template b/dot-env.template index 20d73b3ad..4cf716137 100644 --- a/dot-env.template +++ b/dot-env.template @@ -107,4 +107,7 @@ MINIMAX_API_KEY=... MINIMAX_GROUP_ID=... # Sarvam AI -SARVAM_API_KEY=... \ No newline at end of file +SARVAM_API_KEY=... + +# Sentry +SENTRY_DSN=... \ No newline at end of file diff --git a/examples/sentry-metrics/bot.py b/examples/sentry-metrics/bot.py index 8ff412bb7..44f9a0daa 100644 --- a/examples/sentry-metrics/bot.py +++ b/examples/sentry-metrics/bot.py @@ -49,7 +49,7 @@ async def main(): # Initialize Sentry sentry_sdk.init( - dsn="your-project-dsn", + dsn=os.getenv("SENTRY_DSN"), traces_sample_rate=1.0, )