OpenAI Instrumentor

Auto-instrument OpenAI SDK calls.

import { Respan } from "@respan/respan";
import { OpenAIInstrumentor } from "@respan/instrumentation-openai";
const respan = new Respan({
instrumentations: [new OpenAIInstrumentor()],
});
await respan.initialize();

Install

npm install @respan/instrumentation-openai @traceloop/instrumentation-openai

Wraps @traceloop/instrumentation-openai and integrates it into the Respan plugin protocol. All client.chat.completions.create() calls are auto-traced.