diff --git a/openfga_sdk/telemetry/metrics.py b/openfga_sdk/telemetry/metrics.py index e35e652..c48819d 100644 --- a/openfga_sdk/telemetry/metrics.py +++ b/openfga_sdk/telemetry/metrics.py @@ -2,7 +2,6 @@ from opentelemetry.metrics import Counter, Histogram, Meter, get_meter -from openfga_sdk import __version__ from openfga_sdk.telemetry.attributes import ( TelemetryAttribute, TelemetryAttributes, @@ -32,7 +31,7 @@ def __init__( def meter(self) -> Meter: if self._meter is None: - self._meter = get_meter("openfga-sdk", __version__) + self._meter = get_meter("openfga-sdk") return self._meter diff --git a/test/telemetry/metrics_test.py b/test/telemetry/metrics_test.py index ea9eaab..a556185 100644 --- a/test/telemetry/metrics_test.py +++ b/test/telemetry/metrics_test.py @@ -3,7 +3,6 @@ import pytest from opentelemetry.metrics import Counter, Histogram, Meter -from openfga_sdk import __version__ from openfga_sdk.telemetry.attributes import TelemetryAttributes from openfga_sdk.telemetry.counters import TelemetryCounters from openfga_sdk.telemetry.histograms import TelemetryHistograms @@ -23,7 +22,7 @@ def test_meter_lazy_initialization(mock_get_meter): # Access the meter property, which should trigger lazy initialization meter = telemetry.meter() assert meter == mock_meter - mock_get_meter.assert_called_once_with("openfga-sdk", __version__) + mock_get_meter.assert_called_once_with("openfga-sdk") # Access the meter property again, no new instance should be created meter_again = telemetry.meter()