Skip to main content
OpenAI

Installation

Install both the Netra SDK and OpenAI SDK:

Usage

Initialize the Netra SDK with OpenAI instrumentation enabled. The SDK automatically traces all OpenAI 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