From 61144056aee2f6f64715dcfdbf8f4dae79beb27d Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 21 Apr 2024 16:56:27 +0100 Subject: [PATCH 1/2] Add release to Sentry SDK --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 4affc14..19df55a 100644 --- a/app/main.py +++ b/app/main.py @@ -15,6 +15,7 @@ if config.sentry_enabled: dsn=config.sentry_dsn, enable_tracing=True, environment=config.environment, + release=config.version, integrations=[StdlibIntegration()], spotlight=True ) From 3210fef785ad7686b3b14c9dc4d7925b09ab6d70 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 21 Apr 2024 17:01:22 +0100 Subject: [PATCH 2/2] Fix unit test for APP_VERSION --- tests/test_config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_config.py b/tests/test_config.py index ebebd1c..b26465f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -6,6 +6,7 @@ import os vars: dict = { + "APP_VERSION": "dev", "BOT_NAME": "TestBot", "WEBEX_API_KEY": "testing", "ADMIN_FIRST_NAME": "Test",