skillfed

opentelemetry-instrumentation-watsonx

OpenTelemetry IBM Watsonx Instrumentation

opentelemetry-instrumentation-watsonx v0.62.3 6.9M downloads/30d#1,832 on PyPI7,377
Permissive license Apache-2.0 Active released

What it is and what it does

This package instruments IBM Watsonx and Watson Machine Learning library calls to emit OpenTelemetry spans, capturing prompts, completions, and embeddings automatically. It hooks into the official IBM libraries and exports trace data to any OpenTelemetry-compatible backend (Jaeger, Datadog, etc.) for centralized observability of LLM application behavior.

By default it logs full prompt and completion content to span attributes for visibility, but you can disable this via the TRACELOOP_TRACE_CONTENT environment variable to protect sensitive user data. It depends on opentelemetry-api, opentelemetry-instrumentation, and AI-specific semantic conventions to standardize how LLM interactions are recorded.

Use it for:

  • Debug LLM application behavior by inspecting prompts and completions in a centralized trace backend.
  • Monitor token usage, latency, and error rates across Watsonx API calls in production.
  • Correlate LLM requests with upstream application traces for end-to-end observability.
  • Evaluate output quality by reviewing prompts and completions alongside application context in traces.
  • Audit LLM interactions for compliance by exporting trace data to a secure backend.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Automatically captures and traces IBM Watsonx prompts, completions, and embeddings to OpenTelemetry spans for observability and debugging of LLM applications.

Yes, if you use IBM Watsonx or Watson Machine Learning and need observability. The package is actively maintained, has no known vulnerabilities, and low install friction. Be aware that by default it logs full prompt and completion content—set TRACELOOP_TRACE_CONTENT=false if you handle sensitive user data.

Install

opentelemetry-instrumentation-watsonx on PyPI

pip

pip install opentelemetry-instrumentation-watsonx

uv

uv add opentelemetry-instrumentation-watsonx

poetry

poetry add opentelemetry-instrumentation-watsonx

Installing opentelemetry-instrumentation-watsonx

Before you install

Low friction install with four stable runtime dependencies. Package is actively maintained with a recent release and no known vulnerabilities.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions.

Quickstart

pip install opentelemetry-instrumentation-watsonx

from opentelemetry.instrumentation.watsonx import WatsonxInstrumentor

WatsonxInstrumentor().instrument()

Requires Python 3.10 or later. Requires an OpenTelemetry exporter configured to receive spans (e.g., via OTEL_EXPORTER_OTLP_ENDPOINT).

Verify before relying

  • Whether the instrumentation works with all versions of the IBM Watson Machine Learning library and watsonx.ai library, or only specific versions.
  • Performance overhead of tracing on typical LLM request latency.
  • Whether TRACELOOP_TRACE_CONTENT=false fully prevents sensitive data leakage or only suppresses span attributes.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 6,850,044/month — #1,832 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opentelemetry_instrumentation_watsonx-0.62.3-py3-none-any.whl

Tags

opentelemetry instrumentation watsonxllm tracing ibm watsonprompt completion tracingwatsonx observabilityai model instrumentationllm span collectionwatson machine learning tracing
llm-observabilityopentelemetryibm-watsonx

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-groq

Automatically captures traces of Groq SDK API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-openai

Captures traces of OpenAI API calls (prompts,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-transformers

Adds distributed tracing to HuggingFace…

permissive · top 5,000 on PyPI

ibm-watsonx-ai

Official Python SDK for IBM watsonx.ai that…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-haystack

Adds distributed tracing to Haystack LLM…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-langchain

Adds distributed tracing to Langchain LLM…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-google-generativeai

Automatically traces prompts, completions, and…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-vertexai

Automatically captures traces of VertexAI API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-together

Automatically traces calls to Together AI's API…

permissive · top 5,000 on PyPI

ovos-utils

Provides utilities and command-line tools for…

permissive · top 15,000 on PyPI