Documentation Index
Fetch the complete documentation index at: https://keyvalue.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:
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:
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:
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
}
)