Skip to main content

OpenTelemetry Bedrock instrumentation

Project description

OpenTelemetry Bedrock Instrumentation

This library allows tracing any of AWS Bedrock's models prompts and completions sent with Boto3 to Bedrock.

Installation

pip install opentelemetry-instrumentation-bedrock

Example usage

from opentelemetry.instrumentation.bedrock import BedrockInstrumentor

BedrockInstrumentor().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 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

File details

Details for the file opentelemetry_instrumentation_bedrock-0.33.3.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.3.tar.gz
Algorithm Hash digest
SHA256 df3d22746307e75426823462aa889f953e893296180c44e921031c454c48c33d
MD5 ca6c4419448f49ac523176f3222bb26d
BLAKE2b-256 643e5191c3218f4d54859d9fb9ded9fe4785a8949b6685a399b5dc67ddc2e21b

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_bedrock-0.33.3-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17f3aed9f5351c5d89c0c5fba3c9694603518f1ab76fd44d69b8efee15a73be7
MD5 8a757ce4bff799eb7e9938a9a5af7adf
BLAKE2b-256 9e8a92d55636909e26aa9d6fcaee382155a9050a7562c6b9cbff4888bbc20ef7

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