docs(ai): add cost calculation docs#16283
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
||
| If you're using manual instrumentation and your costs look unexpected (for example, negative costs), the most common cause is incorrectly set token attributes. See the "Token Usage and Cost Gotchas" section on the manual instrumentation page for your platform: | ||
|
|
||
| - [Python](/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module/#token-usage-and-cost-gotchas) |
There was a problem hiding this comment.
Bug: A link in the AI agent cost documentation points to a non-existent page for JavaScript/Node.js, resulting in a 404 error for users.
Severity: MEDIUM
Suggested Fix
Update the markdown link in docs/product/insights/ai/agents/costs.mdx and docs/product/insights/ai/agents/getting-started.mdx from [JavaScript](/platforms/javascript/guides/node/ai-agent-monitoring/#token-usage-and-cost-gotchas) to [JavaScript](/platforms/javascript/common/ai-agent-monitoring/#token-usage-and-cost-gotchas).
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: docs/product/insights/ai/agents/costs.mdx#L69
Potential issue: The cost calculation documentation at
`docs/product/insights/ai/agents/costs.mdx` and the getting-started guide contain a
broken link to the JavaScript/Node.js AI agent monitoring documentation. The link
incorrectly points to `/platforms/javascript/guides/node/ai-agent-monitoring/`, which
does not exist. The correct location for this documentation is
`/platforms/javascript/common/ai-agent-monitoring/`. As a result, users trying to access
the token cost documentation for JavaScript/Node.js will encounter a 404 error,
preventing them from finding important information about token accounting.
Did we get this right? 👍 / 👎 to inform future reviews.
alexander-alderman-webb
requested changes
Feb 6, 2026
vgrozdanic
approved these changes
Feb 6, 2026
alexander-alderman-webb
approved these changes
Feb 6, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes TET-1868