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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.11.0.tar.gz
Algorithm Hash digest
SHA256 ae659b114e3b1fe5954dc8be2c4d1ec946c7239268a97c90234db9ab4e3ae280
MD5 f7df7d8cf4388bf457fe0cecc44668e4
BLAKE2b-256 2b85b124fd15572233690d4b70297192339651266593cba19fa753c14985f07c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 897bee03ade8ef85a842661e3df52b5f8554386eda090ac88ff485459cf4706c
MD5 4db50dbc1d3836c97c9b311075cda867
BLAKE2b-256 d94dfe166f0cb0d490b50dadeaeb866d561d3db0772ad21c025db909994257ca

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