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 syntrac-opentelemetry-instrumentation-watsonx

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_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


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 syntrac_opentelemetry_instrumentation_watsonx-0.0.1.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_watsonx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b49da715336766955d201f0edb46f1b4304123d116dece4fed88da315c5d239c
MD5 1af9ebab52fd917aa9ec1c4dc9f0c6e9
BLAKE2b-256 3b6a4bb98b5aa6595fc5457b4d401ba28bd33e6bbed80cb6eccbc2e9a660ff8f

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_watsonx-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_watsonx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b87bfd9ee779aa9b1b51fd4f6c476cf2bfb596113e7f68faa6cf33701b18b00e
MD5 0f0efdb4002aa031e17e7274ac97c04a
BLAKE2b-256 16121d62aeabd92ad60b9176fc999f05973e0108a3410c174b26dc4543555d64

See more details on using hashes here.

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