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

This version

0.5.1

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b6915e39135c818c5c398fc66dd8e8f075a3f6c94e9dfc28d77be1373d9a32c0
MD5 17f4c69a6455c050451c43117cd72c73
BLAKE2b-256 b2312e9a0769c3529d8af51e5a4e1dc0813efa8adf40e67e141f50cfb62baa67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_transformers-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b1b5f3a5d8160f52873b2356c26f9c40bc1cd1362d87d2da258855786eba4c
MD5 5c67b3cc4656668c9114ebf41bd5b739
BLAKE2b-256 b6ca74ad147959b58b6119851ff20ccb3466ccf440efd19a227bffc713e9880d

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