Page MenuHomeSoftware Heritage

Add environment variable $SWH_SENTRY_ENVIRONMENT

Authored by vlorentz on Jan 22 2020, 2:07 PM.



This allows initializing Sentry with the environment the process
is running in (ie. "production" or "staging"), which allows filtering
in the web UI to only show issues happening in one of the environments.

Diff Detail

rDCORE Foundations and core functionalities
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz created this revision.Jan 22 2020, 2:07 PM
ardumont accepted this revision.EditedJan 22 2020, 3:25 PM
ardumont added a subscriber: ardumont.


Accepted, don't forget to fix the build though.
You are missing mock adaptations for the build to be green ;)

This revision is now accepted and ready to land.Jan 22 2020, 3:25 PM
vlorentz updated this revision to Diff 9179.Jan 22 2020, 3:35 PM

update tests

fyi, I'm adapting the puppet manifests with this.

ardumont accepted this revision.Jan 22 2020, 6:37 PM
This revision was automatically updated to reflect the committed changes.