docs(TSP-1371): add credit consumption tracking to OTEL streaming docs - #745
docs(TSP-1371): add credit consumption tracking to OTEL streaming docs#745claude[bot] wants to merge 1 commit into
Conversation
Documents the new `relevance_ai.billing.credits_used` attribute on invoke_agent spans, including credit rollup behavior and a double-counting warning for customers building credit dashboards from OTEL data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
🎯 Vibe checkReviewed: 1 file (1 with issues, 0 clean) Scores
Score key: 🟢 9–10, 🟡 6–8, 🔴 1–5. Scores are a single overall judgment about the whole PR — not per file. The dropdowns below contain the line-by-line specifics. ✨ Overall vibe: Solid technical reference page — the setup steps are precise, the breaking-change callouts are well placed, and the credit rollup gotcha is documented exactly where a reader needs it. The main friction is systematic: product terms (Agent, Workforce) aren't consistently capitalized, the page title needs sentence case, and one component choice (CardGroup for entity type labels) works against the reader rather than for them. 🔧 Issues (10)
🧩 Component suggestions (3)
🏗️ Page structure (1)
|
| Item | Count |
|---|---|
| Files reviewed | 1 |
| Context pages read | 2 |
| Total lines processed | ~1,172 |
Files read: enterprise/streaming-events.mdx (617 lines), enterprise/data-retention.mdx (389 lines), enterprise/analytics.mdx (166 lines)
Summary
enterprise/streaming-events.mdxrelevance_ai.billing.credits_usedattribute oninvoke_agentspans, including where it surfaces, credit rollup behavior for sub-agent calls, and a prominent warning about double-countinginvoke_agentspan attributes table with a cross-link to the new sectionLinear issue
https://linear.app/relevance/issue/TSP-1371/
🤖 Generated with Claude Code