diff --git a/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py b/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py index 92bbffc3904..fdcce7ca718 100644 --- a/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py +++ b/opentelemetry-api/src/opentelemetry/metrics/_internal/__init__.py @@ -75,6 +75,7 @@ ) from opentelemetry.util._once import Once from opentelemetry.util._providers import _load_provider +from opentelemetry.util.types import Attributes _logger = getLogger(__name__) @@ -102,7 +103,7 @@ def get_meter( name: str, version: Optional[str] = None, schema_url: Optional[str] = None, - attributes: Optional[dict] = None, + attributes: Attributes = None, ) -> "Meter": """Returns a `Meter` for use by the given instrumentation library.