LlamaIndex Tracing
How to use the OpenInference LlamaIndexInstrumentor to trace LlamaIndex applications and send data to Arize.
LlamaIndex is a data framework for your LLM application. Arize helps you observe your LlamaIndex applications by capturing traces using the OpenInference LlamaIndexInstrumentor
.
This guide focuses on LlamaIndex versions >=0.10.43
which support the current OpenInference instrumentation paradigm.
Install
Install LlamaIndex, the OpenInference instrumentor for LlamaIndex, Arize OTel, and supporting OpenTelemetry packages:
Ensure your llama-index
version is compatible with the instrumentor (typically >=0.10.43
or as specified by OpenInference).
Setup Tracing
Initialize the LlamaIndexInstrumentor
after setting up the Arize OpenTelemetry exporter.
Run LlamaIndex Example
You can now use LlamaIndex as normal. Tracing will be automatically captured and sent to Arize.
Observe in Arize
After running your LlamaIndex application, traces will be sent to your Arize project. You can then log in to Arize to visualize the full trace of your LLM application, including inputs, embeddings, retrieval steps, and final outputs.
Resources
Last updated
Was this helpful?