Skip to content

Installation

Basic Installation

pip install genai-otel-instrument

This installs the core library with OpenTelemetry SDK and basic instrumentation support.

Multimodal extras (v1.0.0)

# Everything for multimodal capture (Pillow + pypdf + opencv + boto3)
pip install 'genai-otel-instrument[multimodal]'

# Pick-and-mix
pip install 'genai-otel-instrument[multimodal-images]'   # Pillow (EXIF stripping)
pip install 'genai-otel-instrument[multimodal-pdf]'      # pypdf (PDF redaction)
pip install 'genai-otel-instrument[multimodal-faces]'    # opencv (face blur)
pip install 'genai-otel-instrument[multimodal-s3]'       # boto3 (S3/MinIO/SeaweedFS offload)

See the Multimodal Observability guide for capture-mode configuration and the redactor / store backends.

Optional Extras

Install additional capabilities as needed:

LLM Providers

For Databricks Model Serving and Foundation Model APIs, install the databricks extra, which includes the OpenAI-compatible client and Databricks Python SDK:

pip install "genai-otel-instrument[databricks]"

See the Databricks provider example for environment variables and setup.

# Individual providers
pip install genai-otel-instrument[openai]
pip install genai-otel-instrument[anthropic]
pip install genai-otel-instrument[google]
pip install genai-otel-instrument[aws]
pip install genai-otel-instrument[cohere]
pip install genai-otel-instrument[mistral]
pip install genai-otel-instrument[groq]
pip install genai-otel-instrument[ollama]
pip install genai-otel-instrument[vllm]        # self-hosted vLLM, in-process API
pip install genai-otel-instrument[llamacpp]    # local GGUF models via llama-cpp-python
pip install genai-otel-instrument[together]
pip install genai-otel-instrument[cometapi]
pip install genai-otel-instrument[elevenlabs]   # text-to-speech + Scribe speech-to-text
pip install 'genai-otel-instrument[typesafe]'    # TypeSafe AI / Jev (Python 3.10+)

# All providers
pip install genai-otel-instrument[all-providers]

Frameworks

pip install genai-otel-instrument[crewai]
pip install genai-otel-instrument[langchain]
pip install genai-otel-instrument[langgraph]
pip install genai-otel-instrument[google-adk]
pip install genai-otel-instrument[autogen-agentchat]
pip install 'genai-otel-instrument[strands]'   # Strands Harness (Python 3.10+)
pip install 'genai-otel-instrument[claude-agent-sdk]'  # Anthropic Claude Agent SDK (Python 3.10+)
pip install 'genai-otel-instrument[strands-agents]'  # Strands Agents SDK (Python 3.10+)
pip install 'genai-otel-instrument[microsoft-agent-framework]'  # Microsoft Agent Framework (Python 3.10+)
pip install 'genai-otel-instrument[agno]'  # Agno (Python 3.10+)
pip install 'genai-otel-instrument[antigravity]'  # Google Antigravity SDK (Python 3.10+)

Strands Harness is opt-in. Enable it explicitly with enabled_instrumentors=["strands"]; the base package does not import Strands unless this integration is enabled.

OpenInference (Python 3.10+)

pip install genai-otel-instrument[openinference]

Includes LiteLLM, Smolagents, and MCP instrumentation via OpenInference. The Claude Agent SDK and Agno extras install their corresponding OpenInference integrations, which currently target Python 3.10–3.14. Strands Agents uses the framework's native GenAI spans.

TypeSafe AI / Jev (Python 3.10+)

pip install 'genai-otel-instrument[typesafe]'

This installs the official typesafe-sdk; TraceVerde provides the native instrumentation in this package.

GPU Metrics

pip install genai-otel-instrument[gpu]       # NVIDIA only
pip install genai-otel-instrument[amd-gpu]   # AMD only
pip install genai-otel-instrument[all-gpu]   # Both

Databases and MCP Tools

pip install genai-otel-instrument[databases]    # PostgreSQL, MySQL, MongoDB, Redis, etc.
pip install genai-otel-instrument[messaging]    # Kafka, RabbitMQ
pip install genai-otel-instrument[vector-dbs]   # Pinecone, Weaviate, Qdrant, ChromaDB, etc.
pip install genai-otel-instrument[all-mcp]      # All MCP tools

Evaluation Features

pip install genai-otel-instrument[evaluation]   # PII, toxicity, bias detection

Everything

pip install genai-otel-instrument[all]

Development Installation

git clone https://github.com/Mandark-droid/genai_otel_instrument.git
cd genai_otel_instrument
pip install -e ".[dev,all]"

Requirements

  • Python 3.9+
  • OpenTelemetry SDK 1.20.0+
  • OpenInference features require Python 3.10+