Page MenuHomeSoftware Heritage

Add environment variable $SWH_SENTRY_ENVIRONMENT
ClosedPublic

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

Details

Summary

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.

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

Diff Detail

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

Event Timeline

ardumont added a subscriber: ardumont.

Nice!
Thanks.

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

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