Skip to content

fix(ai-sdk): isolate shared model tracing#2194

Merged
Luca Forstner (lforst) merged 2 commits into
mainfrom
abhi/bt-4980-bug-wrapaisdk-interleaved-traces-with-concurrent-calls
Jul 6, 2026
Merged

fix(ai-sdk): isolate shared model tracing#2194
Luca Forstner (lforst) merged 2 commits into
mainfrom
abhi/bt-4980-bug-wrapaisdk-interleaved-traces-with-concurrent-calls

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

resolves https://linear.app/braintrustdata/issue/BT-4980/bug-wrapaisdk-interleaved-traces-with-concurrent-calls

Before:

  span_tree:                                                                                                
  └── ai-sdk-concurrent-shared-model-root [task]                                                            
      ├── generateText [function]                                                                           
      │   input: { "marker": "MARKER_A" }                                                                   
      │   output: { "marker": "MARKER_A" }                                                                  
      │   ├── doGenerate [llm]                                                                              
      │   │   input: { "marker": "MARKER_A" }                                                               
      │   │   output: { "marker": "MARKER_A" }                                                              
      │   └── doGenerate [llm]                                                                              
      │       input: { "marker": "MARKER_B" }                                                               
      │       output: { "marker": "MARKER_B" }                                                              
      └── generateText [function]                                                                           
          input: { "marker": "MARKER_B" }                                                                   
          output: { "marker": "MARKER_B" }                                                                  

After:

  span_tree:                                                                                                
  └── ai-sdk-concurrent-shared-model-root [task]                                                            
      ├── generateText [function]                                                                           
      │   input: MARKER_A                                                                                   
      │   └── doGenerate [llm]                                                                              
      │       input: MARKER_A                                                                               
      └── generateText [function]                                                                           
          input: MARKER_B                                                                                   
          └── doGenerate [llm]                                                                              
              input: MARKER_B                                                                               

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi/bt-4980-bug-wrapaisdk-interleaved-traces-with-concurrent-calls branch from 1641ea5 to 88ea54d Compare July 3, 2026 20:25
@lforst Luca Forstner (lforst) merged commit c808944 into main Jul 6, 2026
48 checks passed
@lforst Luca Forstner (lforst) deleted the abhi/bt-4980-bug-wrapaisdk-interleaved-traces-with-concurrent-calls branch July 6, 2026 11:16
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