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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_watsonx-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9f3228f4b260e560f69c53cffb61b780c882e389f153317c25658a89cc676229
MD5 d1b1a7871f23731da0a59e437aadf0e7
BLAKE2b-256 a408600b9a79b7a6fe3e523f2173168fa3b7bec9c503e854e32882b649ca441d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_watsonx-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62ecb1d06a1dbe821a06302f773731fe7bb2e47c1f524fbb51c0bba43c3abacf
MD5 44854b22a1e84f1398084ea1acbef42a
BLAKE2b-256 7d7e12e31db86f32afd64d90aac376121943647b6a52dd0071d341551697d77d

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