-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ai-monitoring): Calculate an AI model cost metric per-span (#3554)
AI models have different prices, for example OpenAI's implementation of GPT-4 costs 30$ per million tokens of input, and 60$ per million dollars of output. We'd like to be able to make graphs of how much money you've spent on your AI projects, grouped by, e.g., AI pipeline name. It's messy to put this logic in SDKs, as we can't update those once launched. If we put the logic in Sentry, then any price changes would retroactively apply. --------- Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
- Loading branch information
1 parent
1ddc9a2
commit eb94d40
Showing
19 changed files
with
373 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.