OpenTelemetry IBM Watsonx Instrumentation
This library allows tracing IBM Watsonx prompts and completions sent with the official IBM Watson Machine Learning library and IBM watsonx.ai library.
Installation
pip install opentelemetry-instrumentation-watsonx
Example usage
from opentelemetry.instrumentation.watsonx import WatsonxInstrumentor
WatsonxInstrumentor().instrument()
Privacy
By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.
However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.
To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.
TRACELOOP_TRACE_CONTENT=false
SSL Issue
In case of SSL handshake issues (or similar ones) as follows:
E0423 17:04:25.197068000 6150713344 ssl_transport_security.cc:1420] Handshake failed with fatal error SSL_ERROR_SSL: error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER.
You can instruct the exporter with an environment variable to ignore SSL errors:
OTEL_EXPORTER_OTLP_INSECURE=true
Release files for opentelemetry-instrumentation-watsonx 0.62.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opentelemetry_instrumentation_watsonx-0.62.3.tar.gz | 89.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opentelemetry_instrumentation_watsonx-0.62.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.8 kB
Release files / opentelemetry_instrumentation_watsonx-0.62.3.tar.gz
| Download URL | opentelemetry_instrumentation_watsonx-0.62.3.tar.gz |
|---|---|
| Size | 89.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2739e8b4fe8c39cfa9d04de1aa70788f9292aae81f581cea2eedab376430aef6
|
|
BLAKE2b-256 checksum How to use checksums |
8ca82200e576822400128dbbaca1d6a219e4fa9345791269d877b59ce504c18a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / opentelemetry_instrumentation_watsonx-0.62.3-py3-none-any.whl
| Download URL | opentelemetry_instrumentation_watsonx-0.62.3-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8254ad78c9f77ca47e800368c18aadcf729edec56aa6d757569849e5c184b9d
|
|
BLAKE2b-256 checksum How to use checksums |
b680b0815c0c0ce4c25a10b62aa53c0668591a1a5efb054a93ea3e12cf1b9921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency log