diff --git a/opentelemetry-api/src/opentelemetry/util/types.py b/opentelemetry-api/src/opentelemetry/util/types.py index 28fab893890..5ce93d84b25 100644 --- a/opentelemetry-api/src/opentelemetry/util/types.py +++ b/opentelemetry-api/src/opentelemetry/util/types.py @@ -13,7 +13,16 @@ # limitations under the License. -import typing +from typing import Dict, Optional, Sequence, Union -AttributeValue = typing.Union[str, bool, float] -Attributes = typing.Optional[typing.Dict[str, AttributeValue]] +AttributeValue = Union[ + str, + bool, + int, + float, + Sequence[str], + Sequence[bool], + Sequence[int], + Sequence[float], +] +Attributes = Optional[Dict[str, AttributeValue]]