None of the utils should accept Any, as that is an impossible type for the utils to serialize to the OTel proto.. Instead it should accept the types listed in https://github.com/open-telemetry/opentelemetry-python/blob/7fab34d4f49c1cd67df07fa53471c0ae6c269008/opentelemetry-api/src/opentelemetry/util/types.py#L20 -- this is already done in some places in the utils but not everywhere.. We should update the code..
Span attribute values currently must be of the AttributeValue type (at some point this will change to AnyValue
Not certain what metrics / logs uses but should be easy to figure that out..
None of the utils should accept
Any, as that is an impossible type for the utils to serialize to the OTel proto.. Instead it should accept the types listed in https://github.com/open-telemetry/opentelemetry-python/blob/7fab34d4f49c1cd67df07fa53471c0ae6c269008/opentelemetry-api/src/opentelemetry/util/types.py#L20 -- this is already done in some places in the utils but not everywhere.. We should update the code..Span attribute values currently must be of the
AttributeValuetype (at some point this will change toAnyValueNot certain what metrics / logs uses but should be easy to figure that out..