Skip to content

fix(instrumentation): Initialize tracing automatically in bundles - #2630

Merged
Luca Forstner (lforst) merged 2 commits into
v4from
lforst/dum-e/venice-24629edbf9
Oct 16, 2026
Merged

Luca Forstner (lforst) merged 2 commits into
v4from
lforst/dum-e/venice-24629edbf9

Conversation

@lforst

@lforst Luca Forstner (lforst) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

I fucked up with the vite plus change because we made it more treeshakable but completely fumbled because people had to add an import for auto instrumentation when using bundlers. We now make it so that the bundlers inject the import statement directly.

  • Bundler integrations now load braintrust/auto automatically.
    Previously, they added tracing hooks but required a separate import to actually collect traces.
  • Apply this to both standard instrumentation and provider-specific patches, preserving strict mode and source maps.

@lforst
Luca Forstner (lforst) merged commit c5bb877 into v4 Oct 16, 2026
51 checks passed
@lforst
Luca Forstner (lforst) deleted the lforst/dum-e/venice-24629edbf9 branch October 16, 2026 17:35
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