Skip to content

Commit a79030d

Browse files
committed
Make explicit_bucket_boundaries_advisory kwargs only
1 parent 6a8b8a7 commit a79030d

File tree

2 files changed

+5
-1
lines changed
  • opentelemetry-api/src/opentelemetry/metrics/_internal
  • opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal

2 files changed

+5
-1
lines changed

opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def create_histogram(
430430
name: str,
431431
unit: str = "",
432432
description: str = "",
433+
*,
433434
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
434435
) -> Histogram:
435436
"""Creates a :class:`~opentelemetry.metrics.Histogram` instrument
@@ -578,6 +579,7 @@ def create_histogram(
578579
name: str,
579580
unit: str = "",
580581
description: str = "",
582+
*,
581583
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
582584
) -> Histogram:
583585
with self._lock:
@@ -586,7 +588,7 @@ def create_histogram(
586588
name,
587589
unit,
588590
description,
589-
explicit_bucket_boundaries_advisory,
591+
explicit_bucket_boundaries_advisory=explicit_bucket_boundaries_advisory,
590592
)
591593
proxy = _ProxyHistogram(
592594
name, unit, description, explicit_bucket_boundaries_advisory
@@ -743,6 +745,7 @@ def create_histogram(
743745
name: str,
744746
unit: str = "",
745747
description: str = "",
748+
*,
746749
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
747750
) -> Histogram:
748751
"""Returns a no-op Histogram."""

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def create_histogram(
199199
name: str,
200200
unit: str = "",
201201
description: str = "",
202+
*,
202203
explicit_bucket_boundaries_advisory: Optional[Sequence[float]] = None,
203204
) -> APIHistogram:
204205
if explicit_bucket_boundaries_advisory is not None:

0 commit comments

Comments
 (0)