Skip to main content

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.9.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_watsonx-0.33.9.tar.gz
Algorithm Hash digest
SHA256 393346f5a3254fbec558e4c356dcb6b0d1534f6cf3d158c0c8fad52577a54622
MD5 932d6c4d7c80a40a71382b3c0c4a0bcf
BLAKE2b-256 a8c8e99709e4f48cff771333de9bbf5bd3169c6c91940444c4cb7344ed1b7699

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_watsonx-0.33.9.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

Details for the file opentelemetry_instrumentation_watsonx-0.33.9-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_watsonx-0.33.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c7b05cc426a1f77d31cbc7a18e3423c35662869c31edb6a186be04df24b38280
MD5 1785283e83fb8e6fd7399af91c07f188
BLAKE2b-256 a7e9943d14bbb5c5db141295a939b819e2cc79d0b32af00a5390751a5c54ed35

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_watsonx-0.33.9-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page