Skip to content

docs(audio): define standby metered duration - #93

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
purrfect-bathtub-252251c8
Nov 25, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
purrfect-bathtub-252251c8

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

Summary

Provider-reported standby time is part of total metered duration. This PR defines metrics.usage_standby_seconds on the same LLM span as metrics.usage_seconds, so consumers can calculate active duration by subtracting standby time from the total.

The spec covers reported zero, missing values, and cumulative updates. The SDK compatibility catalog records standby duration support as unknown for all seven SDKs.

SDK-974

Verification

  • Regenerated the compatibility CSV with make compatibility-csv.
  • Passed all 31 tests with make test.
  • Verified the GPT-Live example against the OpenAI API reference.

> 🤖 **This text was AI-generated.**

Providers can bill paused time at a standby rate, but `metrics.usage_seconds`
alone does not show how much of the total was billed at that rate.

Define `metrics.usage_standby_seconds` as the provider-reported subset on
the same span. Active duration is total duration minus standby duration.
Both values are in seconds.

https://linear.app/braintrustdata/issue/SDK-974

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 7363a93 into main Nov 25, 2026
4 checks passed
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.

1 participant