Skip to main content
NPM Version @arizeai/phoenix-otel configures OpenTelemetry export for Arize Phoenix and re-exports the full @arizeai/openinference-core helper surface from the same import path. That means one package gives you Phoenix registration plus:
  • OpenInference wrappers: withSpan, traceChain, traceAgent, traceTool
  • method decorators: observe
  • context propagation: setSession, setUser, setMetadata, setTags, setPromptTemplate, setAttributes
  • attribute builders: getLLMAttributes, getRetrieverAttributes, getEmbeddingAttributes, getToolAttributes
  • redaction helpers: OITracer and OPENINFERENCE_* masking env vars
  • utility helpers: withSafety, safelyJSONStringify, safelyJSONParse
The re-exported OpenInference wrappers resolve the default tracer when the wrapped function runs. Module-scoped traced helpers therefore continue following global provider changes, including experiment-scoped providers.

Installation

npm install @arizeai/phoenix-otel

Start Here

  • Package overview for installation, registration, configuration, instrumentation, and provider lifecycle
  • Tracing helpers for withSpan, traceChain, traceAgent, traceTool, observe, and custom input/output processors
  • Context attributes for sessions, users, metadata, tags, prompt templates, and manual context propagation
  • Manual spans for raw OpenTelemetry spans, attribute helpers, OITracer, and utility helpers

Local Install Pattern

After install, a coding agent can inspect:
node_modules/@arizeai/phoenix-otel/docs/
node_modules/@arizeai/phoenix-otel/src/
Because @arizeai/phoenix-otel re-exports @arizeai/openinference-core, the dependency docs are also useful:
node_modules/@arizeai/openinference-core/docs/
node_modules/@arizeai/openinference-core/src/
This gives the agent version-matched prose, implementation details, and examples without needing network access.

API Reference