Skip to main content
LiteLLM

Installation

Install both the Netra SDK and LiteLLM:

Usage

Initialize the Netra SDK to automatically trace all LiteLLM operations: Set your Netra endpoint and API key before you call Netra.init(). Without NETRA_OTLP_ENDPOINT, the SDK prints spans to the console instead of sending them to Netra, and your dashboard stays empty.
Set these wherever your app runs, including Docker containers and CI jobs.

LiteLLM Features

Trace completions across different providers:

Lightweight Design

Trace with minimal overhead:

Modular Architecture

Trace with custom configurations:

Cross-Platform Support

Trace streaming across platforms:

Async Support

Trace async completions:

Configuration

Configure LiteLLM instrumentation:

Next Steps

Last modified on November 5, 2026