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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.8.tar.gz
Algorithm Hash digest
SHA256 6b505aa3782710a49fef1031a1a02c410726122af76c9e22552c5ff58bd3c3ea
MD5 4bc60a21b752309e6e3f1cdf14f2f8ca
BLAKE2b-256 dc438949f76c919b03c8fcd20cbf177063a77295b070dca01bdbdb5009d33db6

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ff922301e9495c1e964accfc2873cde6aa450affee8c565d100e9acf2cc8c3b8
MD5 12894127e37ccb717deac0f115c51091
BLAKE2b-256 bd3fb4052bcfdc43e9982f9103f8818e96b4100be1c7a6f58962fe0cd95b7010

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

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