OpenInference Instrumentor

Use any OpenInference instrumentor with Respan.

@respan/instrumentation-openinference adapts OpenInference instrumentors for the Respan TypeScript SDK. Respan auto-enriches OpenInference spans into the Traceloop/GenAI format.

Install

$npm install @respan/instrumentation-openinference

Then install the specific OpenInference instrumentor:

$npm install @arizeai/openinference-instrumentation-openai # OpenAI
$npm install @arizeai/openinference-instrumentation-anthropic # Anthropic
$npm install @arizeai/openinference-instrumentation-langchain # LangChain
$npm install @arizeai/openinference-instrumentation-bedrock # AWS Bedrock
$npm install @arizeai/openinference-instrumentation-mcp # MCP
$npm install @arizeai/openinference-instrumentation-beeai # BeeAI

How it works

OpenInference spans carry attributes like openinference.span.kind, llm.model_name, input.value, etc. Respan’s composite processor automatically maps these to Traceloop/GenAI equivalents so they appear correctly in the dashboard.

See OpenTelemetry integration for the full attribute mapping.