From fe3c7844fc024c948d7dc50c69dd9c2aab0b0748 Mon Sep 17 00:00:00 2001 From: sroda Date: Mon, 12 Jun 2023 00:29:37 +0300 Subject: [PATCH] Fix after CR --- .../src/opentelemetry/sdk/metrics/_internal/view.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py index 210713e7ab..28f7b4fe08 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py @@ -51,9 +51,6 @@ class View: card characters should not be used with this attribute if the view has also a ``name`` defined. - instrument_unit: This is an instrument matching attribute: the unit the - instrument must have to match the view. - meter_name: This is an instrument matching attribute: the name the instrument meter must have to match the view. @@ -79,6 +76,9 @@ class View: corresponding metrics stream. If `None` an instance of `DefaultAggregation` will be used. + instrument_unit: This is an instrument matching attribute: the unit the + instrument must have to match the view. + This class is not intended to be subclassed by the user. """ @@ -88,7 +88,6 @@ def __init__( self, instrument_type: Optional[Type[Instrument]] = None, instrument_name: Optional[str] = None, - instrument_unit: Optional[str] = None, meter_name: Optional[str] = None, meter_version: Optional[str] = None, meter_schema_url: Optional[str] = None, @@ -96,6 +95,7 @@ def __init__( description: Optional[str] = None, attribute_keys: Optional[Set[str]] = None, aggregation: Optional[Aggregation] = None, + instrument_unit: Optional[str] = None, ): if ( instrument_type