Skip to content

feat(ai-sdk): add Vercel AI SDK instrumentation - #664

Merged
Abhijeet Prasad (AbhiPrasad) merged 5 commits into
mainfrom
abhi-vercel-ai
Aug 10, 2026
Merged

feat(ai-sdk): add Vercel AI SDK instrumentation#664
Abhijeet Prasad (AbhiPrasad) merged 5 commits into
mainfrom
abhi-vercel-ai

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Aug 6, 2026

Copy link
Copy Markdown
Member

resolves #633
resolves https://linear.app/braintrustdata/issue/SDK-106/add-vercel-ai-sdk-for-python-integration-for-agent-model-and-tool

Register Braintrust with the AI SDK telemetry adapter.

Auto instrumentation (recommended):

import braintrust

braintrust.init_logger(project="my-project")
braintrust.auto_instrument()

AI SDK instrumentation is enabled by default. Opt out with:

braintrust.auto_instrument(ai_sdk=False)

Manual instrumentation:

import braintrust

braintrust.setup_ai_sdk(project_name="my-project")

Support ai>=0.4.0 on Python 3.12+.

Register Braintrust with the AI SDK telemetry adapter.

Auto instrumentation (recommended):

```python
import braintrust

braintrust.init_logger(project="my-project")
braintrust.auto_instrument()
```

AI SDK instrumentation is enabled by default. Opt out with:

```python
braintrust.auto_instrument(ai_sdk=False)
```

Manual instrumentation:

```python
import braintrust

braintrust.setup_ai_sdk(project_name="my-project")
```

Support `ai>=0.4.0` on Python 3.12+.
Install bzip2, lzma, and readline development headers before mise builds matrix interpreters from source. This prevents Python 3.13.15 from missing standard-library extension modules when no precompiled build is available.
Refresh all jdx/mise-action pins with pinact while leaving other actions unchanged.
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit bd6616d into main Aug 10, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi-vercel-ai branch August 10, 2026 13:49
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.

Add Vercel AI SDK for Python integration for agent, model, and tool tracing

2 participants