Creating an environment variable for sentry dsn.

This commit is contained in:
Filipi Fuchter
2025-06-24 11:57:14 -03:00
parent aee3011d61
commit 365260ec44
2 changed files with 5 additions and 2 deletions

View File

@@ -107,4 +107,7 @@ MINIMAX_API_KEY=...
MINIMAX_GROUP_ID=...
# Sarvam AI
SARVAM_API_KEY=...
SARVAM_API_KEY=...
# Sentry
SENTRY_DSN=...

View File

@@ -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,
)