Skip to content

fix: Give AI SDK top-level api spans type function#1769

Merged
Luca Forstner (lforst) merged 1 commit intomainfrom
lforst/ai-sdk-span-types
Apr 9, 2026
Merged

fix: Give AI SDK top-level api spans type function#1769
Luca Forstner (lforst) merged 1 commit intomainfrom
lforst/ai-sdk-span-types

Conversation

@lforst
Copy link
Copy Markdown
Member

Ref: https://linear.app/braintrustdata/issue/BT-4717

Turns span type of top-level spans for ai sdk into function instead of llm to fix the product "double counting" the duration as LLM duration.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like you were saying, we probably need to write down the general rules for this somewhere. Even just a markdown in https://github.com/braintrustdata/braintrust-spec is a good start.

@lforst Luca Forstner (lforst) merged commit 6214e89 into main Apr 9, 2026
49 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/ai-sdk-span-types branch April 9, 2026 18:18
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.

2 participants