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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.10.5.tar.gz
Algorithm Hash digest
SHA256 af0d053203958e99c3ed9f681b8fc22ea74b28f216814efb5db3d74764f5b9c6
MD5 1cd02eace74b89a6ec5fd9ed3a6e7b31
BLAKE2b-256 63ad61d674506d93c19987c8923b26e4afb3dcf272f911ae545d655391c5f0e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.10.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4843959564cfbdc1326c8de5beb5430087346679645d196a9e2130e0824ae661
MD5 aa00309f6b77fc79834e2f5a115b1655
BLAKE2b-256 58009545d14bf4e6e2b140027dbe01773948112ecdd85ab2a9ffc9f8734b633b

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