HomeSoftware Heritage

Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.

Description

Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.

This enables tracking of issues by release/package version in sentry
(https://docs.sentry.io/workflow/releases/).

Also deduplicates code used to call sentry_sdk.init by making all our
init code go through the same function swh.core.sentry.init_sentry."

Details

Provenance
vlorentzAuthored on Jan 10 2020, 3:07 PM
vlorentzPushed on Jan 15 2020, 1:06 PM
Differential Revision
D2514: Add env var SWH_MAIN_PACKAGE to initialize sentry_sdk with a release.
Parents
rDCOREa8dd002073b1: tarball: Improve behavior, docstrings and tests
Branches
Unknown
Tags
Unknown
References
tag: v0.0.85
Build Status
Buildable 10106
Build 14972: test-and-buildJenkins