Docs · Updated 2026-07-25
Node.js integration patterns
Wrap OpenAI, Anthropic, or custom HTTP LLM clients with Chainyze logging in Node.
Wrapper pattern
Time the provider call, capture model + text, then `await chainyze.log(...)` in a try/finally so errors still get logged.
Background flush
Prefer not blocking the response. Fire the log without awaiting if your runtime allows reliable background work.
Serverless
On short-lived Workers/Functions, await the log or use waitUntil so the request outlives the ingest POST.
← All docs · Pricing · Sign up