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

opentelemetry_instrumentation_bedrock-0.55.0.tar.gz (155.7 kB view details)

Uploaded Source

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_bedrock-0.55.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.55.0.tar.gz
Algorithm Hash digest
SHA256 acc98e6b86dd1990b4a0bf85f34b1777d9fd248e7b341cd2895d2c356e65796b
MD5 b3c41a0a5cd6f68eb2251bbbe5cd53c2
BLAKE2b-256 92326615a0f6f2517403d28cf72ffd665445d32c68b62444f352b466bb9e9ad5

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_bedrock-0.55.0.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.55.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95df3d23a5b07e647e3fc9db9ac876e0969bc25c51905a5dbeedce832b350226
MD5 5e1cbf4299187cda48eb1ef7d132a306
BLAKE2b-256 c5ca137223736242c6def5d60448014f9c48ae56eb7175f271b22524f2777d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_bedrock-0.55.0-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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