Skip to main content
You don’t have to wait for the dedicated SDK to use Bento from a TypeScript app. Because Bento is an OpenTelemetry collector, you can point your framework’s own OpenTelemetry exporter straight at Bento — no Bento package required.

Export from any framework

Send traces from the Vercel AI SDK, Mastra, or any OpenTelemetry-emitting framework by pointing its JSON exporter at Bento. This is the recommended path for TypeScript today.
The short version: configure your exporter with the endpoint ${BENTOLABS_BASE_URL}/v1/traces and the header Authorization: Bearer ${BENTOLABS_API_KEY}, using a JSON OTLP exporter (Bento doesn’t accept protobuf yet). The Export from any framework page has copy-paste examples for the Vercel AI SDK and Mastra.

The dedicated SDK

A dedicated @bentolabs/sdk (a drop-in OpenTelemetry span processor, like the Python SDK’s BentoLabsSpanProcessor) is in active development and not yet generally available. Want early access? Reach out at support@bentolabs.ai. Until then, use direct export above.

See also

Export from any framework

Point Vercel AI SDK / Mastra at Bento with no SDK.

Attributes

How OpenTelemetry attributes map to dashboard columns.