Documentation Index
Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
LlamaIndex
Use the Adaline LlamaIndex callback handler to send LlamaIndex events into Adaline. The integration attaches through LlamaIndex’s callback manager and works well for LLM, retrieval, and workflow events emitted by the framework.Prerequisites
Before you start, make sure you have:- An Adaline account.
- A workspace API key — create one under Settings → API keys.
- Your project ID — copy it from Monitor → Copy Project ID.
Install
Initialize Adaline
Create an Adaline client, then initialize a monitor for the target project.For production guidance — buffering, batching, retries, serverless flushing, and graceful shutdown — see Instrument with the Adaline SDK.
Attach the LlamaIndex callback handler
Create anAdalineLlamaIndexCallbackHandler, then add it to a CallbackManager.
Basic example
This example keeps the integration intentionally small: oneOpenAI completion with the Adaline callback handler attached through the callback manager.
Use an existing parent trace or span
The LlamaIndex handler accepts:parent_traceparent_span
Optional event filtering
The handler also accepts:event_starts_to_ignoreevent_ends_to_ignore
What the handler captures
The LlamaIndex callback handler is designed to capture LlamaIndex callback events, including:- root trace creation for a LlamaIndex run
- nested event observations created during that run
- framework and trace metadata stored as Adaline attributes
- child spans under an Adaline parent when provided
Next steps
Instrument with the Adaline SDK
Monitor lifecycle, buffering and batching, retries, serverless flushing, and graceful shutdown.
SDK reference
Full class and type reference for the TypeScript and Python SDKs.
All integrations
Browse every framework and AI-provider integration Adaline supports.
View your logs
Open Adaline to see traces and spans land in your project.