@respan/instrumentation-openrouter
v0.1.0
Published
Respan tracing instrumentation for the OpenRouter TypeScript SDK
Readme
@respan/instrumentation-openrouter
Respan tracing instrumentation for the OpenRouter TypeScript SDK.
Usage
import { Respan } from "@respan/tracing";
import { OpenRouterInstrumentor } from "@respan/instrumentation-openrouter";
await Respan.init({
apiKey: process.env.RESPAN_API_KEY,
appName: "openrouter-typescript-example",
instrumentModules: {
openrouter: new OpenRouterInstrumentor(),
},
});The instrumentation records OpenRouter chat, streamed chat, tool-calling chat, and embeddings calls using canonical GenAI/OpenTelemetry attributes and Respan-owned span attributes.
