From fb5d040dc3ce5d703dc595bd69f1252035c4717b Mon Sep 17 00:00:00 2001 From: Morgan Wowk Date: Wed, 20 May 2026 17:34:45 -0700 Subject: [PATCH] chore!: Change Bugsnag revision variable --- .../instrumentation/bugsnag_instrumentation.py | 4 ++-- .../instrumentation/opentelemetry/_internal/configuration.py | 2 +- tests/instrumentation/test_bugsnag.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cloud_pipelines_backend/instrumentation/bugsnag_instrumentation.py b/cloud_pipelines_backend/instrumentation/bugsnag_instrumentation.py index a5477b7..03758d1 100644 --- a/cloud_pipelines_backend/instrumentation/bugsnag_instrumentation.py +++ b/cloud_pipelines_backend/instrumentation/bugsnag_instrumentation.py @@ -8,7 +8,7 @@ Environment variables: TANGLE_BUGSNAG_API_KEY Required to enable Bugsnag reporting. TANGLE_ENV Release stage (e.g. "staging", "production"). - TANGLE_SERVICE_VERSION App version tag (e.g. git SHA). Optional. + TANGLE_REVISION App version tag (e.g. git SHA). Optional. TANGLE_BUGSNAG_NOTIFY_ENDPOINT Custom notify URL. Optional. TANGLE_BUGSNAG_SESSIONS_ENDPOINT Custom sessions URL. Optional. TANGLE_BUGSNAG_CUSTOM_GROUPING_KEY Metadata key for normalized error grouping. Optional. @@ -28,7 +28,7 @@ _BUGSNAG_API_KEY = os.environ.get("TANGLE_BUGSNAG_API_KEY") _TANGLE_ENV = os.environ.get("TANGLE_ENV") -_SERVICE_VERSION = os.environ.get("TANGLE_SERVICE_VERSION") +_SERVICE_VERSION = os.environ.get("TANGLE_REVISION") _NOTIFY_ENDPOINT = os.environ.get("TANGLE_BUGSNAG_NOTIFY_ENDPOINT") _SESSIONS_ENDPOINT = os.environ.get("TANGLE_BUGSNAG_SESSIONS_ENDPOINT") _CUSTOM_GROUPING_KEY = os.environ.get("TANGLE_BUGSNAG_CUSTOM_GROUPING_KEY") diff --git a/cloud_pipelines_backend/instrumentation/opentelemetry/_internal/configuration.py b/cloud_pipelines_backend/instrumentation/opentelemetry/_internal/configuration.py index a6834db..bc85388 100644 --- a/cloud_pipelines_backend/instrumentation/opentelemetry/_internal/configuration.py +++ b/cloud_pipelines_backend/instrumentation/opentelemetry/_internal/configuration.py @@ -37,7 +37,7 @@ class EnvVar(str, enum.Enum): METRIC_EXPORTER_ENDPOINT = "TANGLE_OTEL_METRIC_EXPORTER_ENDPOINT" METRIC_EXPORTER_PROTOCOL = "TANGLE_OTEL_METRIC_EXPORTER_PROTOCOL" ENV = "TANGLE_ENV" - SERVICE_VERSION = "TANGLE_SERVICE_VERSION" + SERVICE_VERSION = "TANGLE_REVISION" class ExporterProtocol(str, enum.Enum): diff --git a/tests/instrumentation/test_bugsnag.py b/tests/instrumentation/test_bugsnag.py index d40fdd9..82ccf75 100644 --- a/tests/instrumentation/test_bugsnag.py +++ b/tests/instrumentation/test_bugsnag.py @@ -70,7 +70,7 @@ def test_setup_noop_when_disabled(monkeypatch): def test_setup_calls_bugsnag_configure_when_enabled(monkeypatch): monkeypatch.setenv("TANGLE_BUGSNAG_API_KEY", "test-api-key") monkeypatch.setenv("TANGLE_ENV", "staging") - monkeypatch.delenv("TANGLE_SERVICE_VERSION", raising=False) + monkeypatch.delenv("TANGLE_REVISION", raising=False) import importlib import cloud_pipelines_backend.instrumentation.bugsnag_instrumentation as bugsnag_module @@ -88,7 +88,7 @@ def test_setup_calls_bugsnag_configure_when_enabled(monkeypatch): def test_setup_includes_app_version_when_set(monkeypatch): monkeypatch.setenv("TANGLE_BUGSNAG_API_KEY", "test-api-key") monkeypatch.setenv("TANGLE_ENV", "production") - monkeypatch.setenv("TANGLE_SERVICE_VERSION", "abc123") + monkeypatch.setenv("TANGLE_REVISION", "abc123") import importlib import cloud_pipelines_backend.instrumentation.bugsnag_instrumentation as bugsnag_module