Skip to content

[bot] Instrument Vapi (109,404 weekly downloads) #2413

Description

@braintrust-bot

Summary

Vapi publishes an official TypeScript server SDK, @vapi-ai/server-sdk on npm, described by Vapi as "the official TypeScript SDK for accessing Vapi's API" (source: https://github.com/VapiAI/server-sdk-typescript). It provides execution APIs for creating and managing real-time voice AI agent calls. This repository has zero instrumentation for any Vapi SDK surface — no wrapper, no diagnostics channel, no plugin, no auto-instrumentation config, no e2e scenario. As with Retell (a related but distinct voice-agent platform), voice agent call execution is in scope: this repo already instruments other agent-execution SDKs (Google ADK, Strands Agent SDK, Cloudflare Agents) but has no coverage for either voice-agent platform.

What instrumentation is missing

The @vapi-ai/server-sdk npm package exposes these execution surfaces, none of which are instrumented:

SDK Method Description
client.calls.create({ assistantId, phoneNumberId, customer, ... }) Initiates an AI voice agent call — the primary execution entrypoint
client.calls.get(call_id) Retrieves call transcript, recording, and structured output of a completed agent call
client.assistants.create(...) Configures a voice agent assistant (model, voice, transcriber) used at call time
client.squads.create(...) Configures a multi-agent "squad" call-routing execution flow

These mirror the calls.create / call-retrieval pattern that is the core execution surface of the platform — generated programmatically from Vapi's API spec, with its own fetch-based HTTP client (supports Node.js, Cloudflare Workers, Deno, Bun) independent of openai or any already-instrumented package.

No coverage in any instrumentation layer:

  • No wrapper function (e.g. wrapVapi()) in js/src/wrappers/
  • No diagnostics channels or plugin in js/src/instrumentation/plugins/
  • No auto-instrumentation config in js/src/auto-instrumentations/configs/ (not listed in all.ts)
  • No e2e test scenario under e2e/scenarios/
  • Full repo grep for vapi (case-insensitive) returns zero matches anywhere in the repository

Weekly downloads

Weekly downloads: 153,719 (as of 2026-08-31; window 2026-08-23 to 2026-08-29; https://api.npmjs.org/downloads/point/last-week/@vapi-ai/server-sdk)

Braintrust docs status

not_found. Vapi does not appear anywhere on the Braintrust integrations index — https://www.braintrust.dev/docs/guides/tracing/integrations — which lists Tracing integrations, Agent frameworks (including other agent/voice-adjacent entries like LiveKit Agents, Pipecat, Mastra, Cloudflare Agents/AI Chat), Eval frameworks, and Testing frameworks. There is no Vapi entry in any category and no gateway/proxy workaround documented.

Upstream references

Braintrust docs sources checked

Local files inspected

  • js/src/wrappers/*.ts — full directory listing — no vapi.ts wrapper
  • js/src/instrumentation/plugins/*.ts — full directory listing — no Vapi channels or plugin file
  • js/src/auto-instrumentations/configs/all.ts — full config group list (openai, anthropic, bedrock, ai-sdk, claude-agent-sdk, cloudflare-*, cursor-sdk, openai-agents, google-genai, huggingface(+transformers), langchain/langgraph, langsmith, openrouter(+agent), mistral, ollama, google-adk, cohere, groq, genkit, github-copilot, pi-coding-agent, strands-agent-sdk, flue, voyageai) — no Vapi entry
  • e2e/scenarios/ — no Vapi test scenario
  • Full repo grep for vapi (case-insensitive) — zero matches

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions