Skip to content

Conversation

@xrmx
Copy link
Member

@xrmx xrmx commented Nov 27, 2024

What does this pull request do?

Update attributes to match
open-telemetry/semantic-conventions#1603

Related issues

@xrmx xrmx requested a review from trentm November 27, 2024 14:53
GEN_AI_SYSTEM: "openai",
GEN_AI_RESPONSE_MODEL: model,
GEN_AI_REQUEST_ENCODING_FORMAT: "float",
GEN_AI_REQUEST_ENCODING_FORMATS: ("float",),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly showing my ignorance here. The code sets value of this attribute to a list, but compares it to a tuple here. Why does the == comparison return True?

>>> {"foo":1, "bar":["float"]} == {"foo":1, "bar":("float",)}
False

Copy link
Member Author

@xrmx xrmx Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lists ends up as tuples for some reason in tests, haven't digged much on where this happens.

@xrmx xrmx merged commit 1720368 into main Nov 28, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants