Skip to content

Commit

Permalink
Add attributes fields to meter subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek378521 committed Jul 9, 2024
1 parent e44bffe commit 722be3c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def get_meter(
name: str,
version: Optional[str] = None,
schema_url: Optional[str] = None,
attributes: Optional[Attributes] = None,
) -> "Meter":
"""Returns a NoOpMeter."""
return NoOpMeter(name, version=version, schema_url=schema_url)
Expand All @@ -158,6 +159,7 @@ def get_meter(
name: str,
version: Optional[str] = None,
schema_url: Optional[str] = None,
attributes: Optional[Attributes] = None,
) -> "Meter":
with self._lock:
if self._real_meter_provider is not None:
Expand Down

0 comments on commit 722be3c

Please sign in to comment.