diff --git a/hindsight-api-slim/hindsight_api/metrics.py b/hindsight-api-slim/hindsight_api/metrics.py index 1e29b7ac6..440bb0e71 100644 --- a/hindsight-api-slim/hindsight_api/metrics.py +++ b/hindsight-api-slim/hindsight_api/metrics.py @@ -332,7 +332,6 @@ def record_operation( start_time = time.time() attributes = { "operation": operation, - "bank_id": bank_id, "source": source, "tenant": _get_tenant(), } diff --git a/hindsight-api-slim/tests/test_metrics.py b/hindsight-api-slim/tests/test_metrics.py index 5db167c42..7d36bd4fd 100644 --- a/hindsight-api-slim/tests/test_metrics.py +++ b/hindsight-api-slim/tests/test_metrics.py @@ -95,7 +95,7 @@ def test_record_operation_records_duration(self, collector): # Second arg is attributes dict attributes = call_args[0][1] assert attributes["operation"] == "recall" - assert attributes["bank_id"] == "test_bank" + assert "bank_id" not in attributes assert attributes["source"] == "api" assert attributes["success"] == "true"