Skip to main content
Ollama

Installation

Install both the Netra SDK and Ollama SDK:

Usage

Initialize the Netra SDK with Ollama instrumentation enabled. The SDK automatically traces all Ollama API calls once initialized.

Streaming Responses

The SDK automatically handles streaming responses and captures the complete output:

Embeddings

Embedding operations are also automatically instrumented:

Selective Instrumentation

Control which integrations are enabled using the instruments or blockInstruments configuration:

Next Steps

Last modified on March 17, 2026