Skip to content

Move audio metered duration to metrics.usage_seconds - #92

Merged
Abhijeet Prasad (AbhiPrasad) merged 3 commits into
mainfrom
rename-audio-usage-6b5d61e8
Nov 25, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 3 commits into
mainfrom
rename-audio-usage-6b5d61e8

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Record provider-reported metered duration as metrics.usage_seconds on the owning llm span. Keep the audio trace schema at 3.2.0 because the metered-duration field is still unused.
  • Document prompt_audio_tokens, prompt_cached_audio_tokens, and completion_audio_tokens together in the audio trace spec. Show reported completion audio tokens on an interrupted response.
  • Update the instrumentation guide and canonical metrics reference for metered duration.

Follow-up to #91. The app registers the cached-input metric in braintrustdata/braintrust#27031.

Verification

  • make compatibility-csv
  • make test passed all 31 tests and compatibility validation.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 112d692 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