OpenAI Instrumentor

Auto-instrument OpenAI SDK calls.

1import { Respan } from "@respan/respan";
2import { OpenAIInstrumentor } from "@respan/instrumentation-openai";
3
4const respan = new Respan({
5 instrumentations: [new OpenAIInstrumentor()],
6});
7await 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.