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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.12.tar.gz
Algorithm Hash digest
SHA256 6f5a3f7044edff020d62b3e94f0ea543da4e5c23b7cdb72642692952843b0003
MD5 b917a908c64ea437bb856df0469c4ae6
BLAKE2b-256 955a346c17fca4dd929ce6be8cf402cd3580bb6e4da42ca8eadd2b6f2b4907e4

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f9749898c52643d5027b45ac92bf4d3fd39b83adfaf68705a0ed9b4f04b8afae
MD5 59e51dfa357f450e7bcd98898e64deec
BLAKE2b-256 d104d93857519edd693e72e6d9ba08a6f0feda2ca21a08e3bc02cbfe242495f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_bedrock-0.33.12-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