OpenTelemetry IBM Watsonx Instrumentation
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file opentelemetry_instrumentation_watsonx-0.33.12.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_watsonx-0.33.12.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98d537e3e9a919eab87f1f5f487679dd642d0742032635001b974c2154cedc0b |
|
MD5 | eace87c96fd7271e4d76de048c2fa605 |
|
BLAKE2b-256 | 5bf413359f1ef849d87010e494f503ce0d90c0b37f25b3cdf1ce58f0eaf0aa0b |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_watsonx-0.33.12.tar.gz
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_watsonx-0.33.12.tar.gz
- Subject digest:
98d537e3e9a919eab87f1f5f487679dd642d0742032635001b974c2154cedc0b
- Sigstore transparency entry: 148749162
- Sigstore integration time:
- Predicate type:
File details
Details for the file opentelemetry_instrumentation_watsonx-0.33.12-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_watsonx-0.33.12-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76bde9b15ca9be9fa6124b7e09606203103b77e7fa05227b8c9145fd2a782102 |
|
MD5 | a3c4a185df6243b1ea08038dc70b2b6e |
|
BLAKE2b-256 | a3f674c9e14dc3324a9e5fb9a31c1ae29f92d25afe7930d1430dc55923867547 |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_watsonx-0.33.12-py3-none-any.whl
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_watsonx-0.33.12-py3-none-any.whl
- Subject digest:
76bde9b15ca9be9fa6124b7e09606203103b77e7fa05227b8c9145fd2a782102
- Sigstore transparency entry: 148749268
- Sigstore integration time:
- Predicate type: