---
title: "AI Tracing"
description: "Choose the right Blyp AI tracing entrypoint and jump into the dedicated setup guide for each SDK or runtime."
canonical_url: "https://www.blyp.dev/docs/ai/tracing"
markdown_url: "https://www.blyp.dev/docs/ai/tracing.md"
last_updated: "2018-10-20"
x_farming_labs_generated_preamble: true
---

# AI Tracing
URL: /docs/ai/tracing
LLM index: /llms.txt
Description: Choose the right Blyp AI tracing entrypoint and jump into the dedicated setup guide for each SDK or runtime.

# AI Tracing

Use Blyp AI tracing when you want LLM calls to emit normalized `ai_trace` records with usage, finish reason, timing, and request-scoped correlation.

## Pick the SDK guide you actually use

Blyp splits AI tracing across dedicated entrypoints, so each SDK now has its own setup page:

- [Better Agent](/docs/ai/better-agent) for `@blyp/core/ai/better-agent`
- [Vercel AI SDK](/docs/ai/vercel-ai-sdk) for `@blyp/core/ai/vercel`
- [OpenAI SDK](/docs/ai/openai-sdk) for `@blyp/core/ai/openai` and OpenRouter through the OpenAI-compatible client path
- [Anthropic SDK](/docs/ai/anthropic-sdk) for `@blyp/core/ai/anthropic`
- [AI Privacy & Capture](/docs/ai/privacy-and-capture) for the shared `capture`, `exclude`, and `limits` controls

## Provider matrix

| Entry | Wrapped methods |
| --- | --- |
| `@blyp/core/ai/better-agent` | Better Agent app/plugin runs and manual tracker flows, emitted as one run-level trace per Better Agent run |
| `@blyp/core/ai/vercel` | Vercel AI SDK `generateText()` and `streamText()` |
| `@blyp/core/ai/openai` | OpenAI `responses.create()` and `chat.completions.create()`, plus OpenRouter through the OpenAI-compatible client path |
| `@blyp/core/ai/anthropic` | Anthropic `messages.create()` |
| `@blyp/core/ai/fetch` | low-level `fetch` transport tracing for status, latency, request IDs, and optional JSON body inspection |

## Advanced API surface

Additional public APIs:

- `blypPlugin`
- `createBetterAgentTracker`
- `createOpenAITracker`
- `BlypProviderOptions`
- `BlypBetterAgentOptions`
- `BlypBetterAgentRunResolver`
- `BlypBetterAgentTracker`
- `BlypMiddlewareContext`
- `BlypSDKContext`
- `BlypLLMTrace`
- `BlypTraceEvent`

Shared provider-level trace types such as `BlypAIProvider`, `BlypCaptureOptions`, `BlypExcludeOptions`, `BlypLimitOptions`, `BlypLLMTrace`, `BlypProviderOptions`, `BlypSDKContext`, and `BlypTraceEvent` are exported from `@blyp/core/ai/shared`. `BlypMiddlewareContext` remains on `@blyp/core/ai/vercel`.

Use [AI Privacy & Capture](/docs/ai/privacy-and-capture) for the capture defaults and the exact `capture`, `exclude`, and `limits` controls.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
