Page MenuHomeSoftware Heritage

Set SWH_MAIN_PACKAGE and SWH_SENTRY_ENVIRONMENT for all services
Closed, MigratedEdits Locked

Description

(these variables are independent from each other, but I'm putting them both in the same task as it's probably less work to handle them both at once)

It should be set the same way we currently have SWH_SENTRY_DSN.

SWH_MAIN_PACKAGE names must be dotted package names (swh.indexer, swh.storage, etc.)

Choosing SWH_SENTRY_ENVIRONMENT names are left to the implementer of this task, but I suggest production and staging, as they match both our terminology and Sentry's.

https://docs.sentry.io/workflow/releases/?platform=python

https://docs.sentry.io/enriching-error-data/environments/?platform=python

Event Timeline

vlorentz renamed this task from Set SWH_MAIN_PACKAGE for all SWH services to Set SWH_MAIN_PACKAGE for all services.Jan 15 2020, 2:58 PM
vlorentz triaged this task as Normal priority.
vlorentz created this task.
vlorentz renamed this task from Set SWH_MAIN_PACKAGE for all services to Set SWH_MAIN_PACKAGE and SWH_SENTRY_ENVIRONMENT for all services.Jan 22 2020, 2:10 PM
vlorentz updated the task description. (Show Details)
vlorentz updated the task description. (Show Details)
ardumont added a subscriber: ardumont.

Adapting the puppet manifest so we can discriminate issues per environment in sentry.