Skip to content

Commit fe3c784

Browse files
author
sroda
committed
Fix after CR
1 parent 5dc8f4b commit fe3c784

File tree

1 file changed

+4
-4
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class View:
5151
card characters should not be used with this attribute if the view has also a
5252
``name`` defined.
5353
54-
instrument_unit: This is an instrument matching attribute: the unit the
55-
instrument must have to match the view.
56-
5754
meter_name: This is an instrument matching attribute: the name the
5855
instrument meter must have to match the view.
5956
@@ -79,6 +76,9 @@ class View:
7976
corresponding metrics stream. If `None` an instance of
8077
`DefaultAggregation` will be used.
8178
79+
instrument_unit: This is an instrument matching attribute: the unit the
80+
instrument must have to match the view.
81+
8282
This class is not intended to be subclassed by the user.
8383
"""
8484

@@ -88,14 +88,14 @@ def __init__(
8888
self,
8989
instrument_type: Optional[Type[Instrument]] = None,
9090
instrument_name: Optional[str] = None,
91-
instrument_unit: Optional[str] = None,
9291
meter_name: Optional[str] = None,
9392
meter_version: Optional[str] = None,
9493
meter_schema_url: Optional[str] = None,
9594
name: Optional[str] = None,
9695
description: Optional[str] = None,
9796
attribute_keys: Optional[Set[str]] = None,
9897
aggregation: Optional[Aggregation] = None,
98+
instrument_unit: Optional[str] = None,
9999
):
100100
if (
101101
instrument_type

0 commit comments

Comments
 (0)