Skip to content

Commit

Permalink
refactor(OpenTelemetry): remove SDK version from meter name
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Sep 23, 2024
1 parent a00f039 commit ced639a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openfga_sdk/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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

Expand Down
2 changes: 1 addition & 1 deletion test/telemetry/metrics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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()
Expand Down

0 comments on commit ced639a

Please sign in to comment.