LlamaIndexInstrumentor.
Note: The standard
LlamaIndexInstrumentor (covered in the main LlamaIndex Tracing with Arize AX guide) automatically captures traces for LlamaIndex Workflows. If you’ve already instrumented LlamaIndex following that guide, your workflows should already be traced. This page provides a consolidated view for workflow-specific considerations.We recommend using llama_index >= 0.11.0 for the best experience with Workflows and OpenInference.API Key Setup
Before running your application, ensure you have the following environment variables set:Install
Ensure you have LlamaIndex and the OpenInference LlamaIndex instrumentor installed, along with Arize AX OTel and supporting OpenTelemetry packages:Setup Tracing
Initialize theLlamaIndexInstrumentor after setting up the Arize AX OpenTelemetry exporter. This same setup instruments both general LlamaIndex usage and LlamaIndex Workflows.