Skip to content

Conversation

@colin-sentry
Copy link
Contributor

@colin-sentry colin-sentry commented Jul 23, 2024

If you have never sent a span with ai.model_id, the span metric ai.total_cost will never be extracted, and then the indexer will throw an error if you try to look for it.

This separates the "ai.total_cost" and "ai.total_tokens.used" table entries

@colin-sentry colin-sentry requested a review from a team July 23, 2024 17:18
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 23, 2024
Copy link
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

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

Up to you if you want to make it nullable, or add explicit handling here! Error checking is a good idea though

colin-sentry and others added 2 commits July 23, 2024 14:46
Co-authored-by: George Gritsouk <989898+gggritso@users.noreply.github.com>
@colin-sentry colin-sentry merged commit 5694687 into master Jul 23, 2024
@colin-sentry colin-sentry deleted the token_cost_separate branch July 23, 2024 20:31
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants