Skip to content

Configure Sentry DSN for hackbot-api#6372

Draft
suhaibmujahid wants to merge 1 commit into
mozilla:masterfrom
suhaibmujahid:worktree-hackbot-api-sentry-dsn
Draft

Configure Sentry DSN for hackbot-api#6372
suhaibmujahid wants to merge 1 commit into
mozilla:masterfrom
suhaibmujahid:worktree-hackbot-api-sentry-dsn

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

Summary

Sets the Sentry DSN for the hackbot-api service so error reporting is actually enabled.

The Sentry SDK was already wired up in app/main.py (behind an if settings.sentry_dsn: guard) and sentry-sdk is already a dependency, but sentry_dsn defaulted to None, so sentry_sdk.init() was never called. This sets the DSN as the config default, matching the reviewhelper-api convention (a Sentry DSN is a public client key, not a secret). It remains overridable via the SENTRY_DSN environment variable.

Changes

  • services/hackbot-api/app/config.py: default sentry_dsn to the project DSN instead of None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant