Skip to content

[genai-utils] Remove all usages of typing.Any #41

@DylanRussell

Description

@DylanRussell

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions