Skip to content
Snippets Groups Projects
Commit b384d0ea authored by Antoine Lambert's avatar Antoine Lambert
Browse files

celery_backend/config: Enable to set Sentry DSN per task type

Add a task_prerun celery signal handler in order to set Sentry DSN based
on task name. The mapping between a task name and its DSN must be stored
in configuration under a "task_sentry_dsn" key.

For this feature to work, no SWH_SENTRY_DSN environment variable should
be defined as it overrides the sentry_dsn value passed to init_sentry
function.

Related to swh/meta#4949.
parent c24b0c85
No related branches found
No related tags found
No related merge requests found
Pipeline #1684 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment