Skip to content

Conversation

@xrmx
Copy link
Member

@xrmx xrmx commented Feb 27, 2025

What does this pull request do?

When spans are not recording the attributes are not accessible and so we'll crash trying to access them in metrics code. So decouple the metrics code from the span and instead use the plain attributes.

Related issues

Closes #53

When spans are not recording the attributes are not accessible and so
we'll crash trying to access them in metrics. Instead decouple the
metrics code from the span and instead pass just the attributes.
@xrmx xrmx merged commit b8f038f into main Feb 27, 2025
14 checks passed
@codefromthecrypt
Copy link
Contributor

good work, this is the ideal solution

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.

openai: investigate metrics code relying on span recording

5 participants