Skip to main content

OpenTelemetry transformers instrumentation

Project description

OpenTelemetry HuggingFace Transformers Instrumentation

This library allows tracing texte generation calls sent with the official HuggingFace Transformers library.

Installation

pip install opentelemetry-instrumentation-transformers

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

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_transformers-0.10.4.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.10.4.tar.gz
Algorithm Hash digest
SHA256 5d5bcba4e83e069d5671239aae4ddb2441440c5c90b3954c2872992cd18a2a26
MD5 1d02475853cb5248fe38b5088acb088e
BLAKE2b-256 e41d40cc76ea3ca7d49d55569ff3fab40c12b1731f412a2c4171fefbb56adbb7

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_transformers-0.10.4-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2acc61fe621952c2bfceb3fbbb8e966bde2770f9e8e33316a8dfa20bf51431d
MD5 2d98aa0f528a66f50177575ef94c47b8
BLAKE2b-256 ec9f78fa3529f4bd6713153e2f760c8674860b71173c7223e82907f9a3094b7e

See more details on using hashes here.

Supported by

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