> ## Documentation Index
> Fetch the complete documentation index at: https://keyvalue.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Instrumentation Selection

> Control which instrumentations are enabled in Netra SDK

Control which instrumentations are enabled in the Netra SDK to customize your observability setup. This section explains how to enable or disable specific instrumentations.

## Available Instrumentation Sets

Netra SDK provides several built-in instrumentation sets that you can enable or disable:

```python python theme={null}
from netra.instrumentation.instruments import InstrumentSet

# Available instrumentation sets
InstrumentSet.OPENAI          # OpenAI API instrumentation
InstrumentSet.WEAVIATEDB      # Weaviate database instrumentation
InstrumentSet.FASTAPI         # FastAPI framework instrumentation
InstrumentSet.HTTPX           # HTTPX client instrumentation
InstrumentSet.REDIS           # Redis database instrumentation
```

## Enabling Specific Instrumentations

Enable only the instrumentations you need by specifying them in the `instruments` parameter:

```python python theme={null}
from netra import Netra
from netra.instrumentation.instruments import InstrumentSet

# Enable specific instruments only
Netra.init(
    app_name="Selective App",
    instruments={
        InstrumentSet.OPENAI,      # Enable OpenAI API tracing
        InstrumentSet.WEAVIATEDB,  # Enable Weaviate database tracing
        InstrumentSet.FASTAPI      # Enable FastAPI framework tracing
    }
)
```

## Blocking Specific Instrumentations

Disable specific instrumentations by listing them in the `block_instruments` parameter:

```python python theme={null}
from netra import Netra
from netra.instrumentation.instruments import InstrumentSet

# Block specific instruments
Netra.init(
    app_name="Blocked App",
    block_instruments={
        InstrumentSet.HTTPX,  # Don't trace HTTPX calls
        InstrumentSet.REDIS   # Don't trace Redis operations
    }
)
```

##


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.