Skip to content

feat(anthropic): add prompt cache ttl metrics#344

Draft
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-feat-anthropic-prompt-cache-metrics
Draft

feat(anthropic): add prompt cache ttl metrics#344
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-feat-anthropic-prompt-cache-metrics

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Surface Anthropic cache_creation TTL buckets as Braintrust span metrics for 5m and 1h prompt-cache writes while preserving the aggregate cache creation total for legacy cost paths.

Add focused VCR-backed coverage for both default 5m caching and the extended 1h beta header.

ref braintrustdata/braintrust-spec#13
dependent on https://github.com/braintrustdata/braintrust/pull/12968 being merged

Surface Anthropic cache_creation TTL buckets as Braintrust span metrics for 5m and 1h prompt-cache writes while preserving the aggregate cache creation total for legacy cost paths.

Add focused VCR-backed coverage for both default 5m caching and the extended 1h beta header.
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