Control which instrumentations are enabled in Netra SDK
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
instruments
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 } )
block_instruments
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 } )