Skip to main content
Cerebras

Installation

Install both the Netra SDK and Cerebras:

Usage

Initialize the Netra SDK to automatically trace all Cerebras 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.

Chat Completions

Trace chat completions with decorators:

Streaming Responses

Trace streaming completions:

Multi-turn Conversations

Trace conversation history:

Model Configuration

Trace with different models and settings:

Configuration

Configure Cerebras instrumentation:

Next Steps

Last modified on November 5, 2026