arize-phoenix-otel now re-exports the most common OpenInference context managers and semantic conventions, so manual instrumentation no longer requires pulling in openinference-instrumentation or openinference-semantic-conventions as separate dependencies.
Install
phoenix.otel re-exports require 0.16.0 or later. On older versions you must continue to import from openinference.instrumentation and openinference.semconv.trace.Context Managers
Propagate session IDs, user IDs, metadata, tags, prompt templates, and custom attributes to every span inside a block. Each helper works as both awith context manager and a function decorator.
OpenInference Semantic Conventions
SpanAttributes, OpenInferenceSpanKindValues, and OpenInferenceMimeTypeValues are re-exported for use when building spans by hand.
What’s Not Re-exported
Lower-level helpers continue to live inopeninference-instrumentation and need a separate install when you use them:
- Attribute builders —
get_llm_attributes,get_input_attributes,get_output_attributes,get_retriever_attributes,get_embedding_attributes,get_tool_attributes - Trace redaction —
TraceConfig - OpenInference message types —
Message,Image,TextMessageContent,ImageMessageContent,ToolCall - Auto-instrumentor packages —
openinference-instrumentation-openai,openinference-instrumentation-langchain, …
arize-phoenix-otel Reference
Full API reference for register, OTel primitives, and manual instrumentation helpers.
Using Tracing Helpers
Manual instrumentation walkthrough with decorators, context managers, and span kinds.

