diff --git a/swh/core/sentry.py b/swh/core/sentry.py --- a/swh/core/sentry.py +++ b/swh/core/sentry.py @@ -22,12 +22,14 @@ if debug is None: debug = bool(os.environ.get('SWH_SENTRY_DEBUG')) sentry_dsn = sentry_dsn or os.environ.get('SWH_SENTRY_DSN') + environment = os.environ.get('SWH_SENTRY_ENVIRONMENT') if sentry_dsn: import sentry_sdk sentry_sdk.init( release=get_sentry_release(), + environment=environment, dsn=sentry_dsn, integrations=integrations, debug=debug,