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.
LiteLLM
Use the Adaline LiteLLM logger to send LiteLLM calls into Adaline. The integration attaches through LiteLLM’s callback system and works with the model/provider routing you already use.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 LiteLLM logger
Create anAdalineLiteLLMLogger and register it in litellm.callbacks.
Basic example
This example keeps the integration intentionally small: one LiteLLM completion with the Adaline logger attached.Use an existing parent trace or span
If you already created a trace or span in Adaline, pass it to the logger so LiteLLM work is attached underneath it.parent_traceparent_span
What the logger captures
The LiteLLM integration is designed to capture LiteLLM completion activity, including:- model and provider metadata
- input and output payloads from the logged completion
- token usage when the provider response includes usage fields
- nested 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.