From c3e33d7dded79922b2a95e6123c4d45383c48c34 Mon Sep 17 00:00:00 2001 From: Vivek Date: Wed, 3 Jul 2024 19:30:43 +0530 Subject: [PATCH] Use custom Attributes object for sdk --- .../src/opentelemetry/sdk/metrics/_internal/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py index 4fe84d3da47..c0000fea36d 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py @@ -54,6 +54,7 @@ from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.util.instrumentation import InstrumentationScope from opentelemetry.util._once import Once +from opentelemetry.util.types import Attributes _logger = getLogger(__name__) @@ -518,7 +519,7 @@ def get_meter( name: str, version: Optional[str] = None, schema_url: Optional[str] = None, - attributes: Optional[dict] = None, + attributes: Attributes = None, ) -> Meter: if self._disabled: