Skip to main content
Cohere

Installation

Install the Netra SDK along with the Cohere client library:

Usage

Netra automatically instruments Cohere API calls when you initialize the SDK. The instrumentation captures chat completions, streaming responses, and rerank operations.

Basic Setup

Initialize Netra at the start of your application to enable automatic Cohere instrumentation:

Streaming Responses

Netra automatically handles streaming responses from Cohere:

Rerank Operations

Rerank API calls are also automatically instrumented:

Session Tracking

Associate Cohere operations with user sessions for better analytics:

Selective Instrumentation

Enable only Cohere instrumentation if needed:

Next Steps

Last modified on March 17, 2026