Skip to content

Commit

Permalink
Make explicit_bucket_boundaries_advisory kwargs only
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed Jan 27, 2025
1 parent 32be722 commit d4dc7c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ def create_histogram(
name: str,
unit: str = "",
description: str = "",
*,
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
) -> Histogram:
"""Creates a :class:`~opentelemetry.metrics.Histogram` instrument
Expand Down Expand Up @@ -578,6 +579,7 @@ def create_histogram(
name: str,
unit: str = "",
description: str = "",
*,
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
) -> Histogram:
with self._lock:
Expand All @@ -586,7 +588,7 @@ def create_histogram(
name,
unit,
description,
explicit_bucket_boundaries_advisory,
explicit_bucket_boundaries_advisory=explicit_bucket_boundaries_advisory,
)
proxy = _ProxyHistogram(
name, unit, description, explicit_bucket_boundaries_advisory
Expand Down Expand Up @@ -743,6 +745,7 @@ def create_histogram(
name: str,
unit: str = "",
description: str = "",
*,
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
) -> Histogram:
"""Returns a no-op Histogram."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def create_histogram(
name: str,
unit: str = "",
description: str = "",
*,
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
) -> APIHistogram:
if explicit_bucket_boundaries_advisory is not None:
Expand Down

0 comments on commit d4dc7c6

Please sign in to comment.