@respan/instrumentation-beeai
v0.1.0
Published
Respan instrumentation plugin for BeeAI Framework
Downloads
62
Readme
@respan/instrumentation-beeai
Respan instrumentation plugin for BeeAI Framework.
This package wraps @arizeai/openinference-instrumentation-beeai and routes
BeeAI OpenInference spans through the Respan OpenInference translator.
Install
npm install @respan/respan @respan/instrumentation-beeai \
@arizeai/openinference-instrumentation-beeai [email protected] @ai-sdk/openai@^1.3.13 zod@^3.24.2Supported Versions
This package delegates to @arizeai/openinference-instrumentation-beeai, which instruments beeai-framework >=0.1.9 <0.1.14. Use [email protected] for the current compatible examples.
Usage
import * as beeaiFramework from "beeai-framework";
import { Respan } from "@respan/respan";
import { BeeAIInstrumentor } from "@respan/instrumentation-beeai";
const respan = new Respan({
apiKey: process.env.RESPAN_API_KEY,
baseURL: process.env.RESPAN_BASE_URL,
instrumentations: [
new BeeAIInstrumentor({ sdkModule: beeaiFramework }),
],
});
await respan.initialize();Pass sdkModule when running BeeAI through ESM so the underlying OpenInference
instrumentor can patch the module instance used by your app.
