Blyp Docs

AI

Blyp can emit structured ai_trace records for AI workloads without forcing you into one SDK.

Supported entrypoints:

What gets emitted

Each traced AI call produces one normalized ai_trace record with:

The goal is to make AI calls queryable with the same Blyp primitives used for request logs, structured logs, connectors, and database records.

Request-scoped correlation

When an active request-scoped logger exists, AI traces inherit it automatically. That means the same request can carry:

See Request Tracing for the x-blyp-trace-id lifecycle and how browser logs join the same trace.

Covered SDK paths

EntryCovered calls
@blyp/core/ai/better-agentBetter Agent run-level tracing through app plugins or manual tracker wiring
@blyp/core/ai/vercelVercel AI SDK generateText() and streamText()
@blyp/core/ai/openaiOpenAI responses.create() and chat.completions.create()
@blyp/core/ai/anthropicAnthropic messages.create()
@blyp/core/ai/fetchgeneric transport tracing for status, latency, request IDs, and optional JSON body inspection

OpenRouter is supported through the OpenAI-compatible path by pointing the OpenAI client at the OpenRouter base URL.