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 syntrac-opentelemetry-instrumentation-bedrock

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_TRACE_CONTENT=false

Project details


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 syntrac_opentelemetry_instrumentation_bedrock-0.0.2.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_bedrock-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b392965de74a1474026bba973bb3adf25d1e1f71840b4a75eea7659ac2cd197a
MD5 b006407265a6dc93eee4e21a2794b6d1
BLAKE2b-256 5bdec410190a13a85e8801abca581b9b7aae149edf4c9ce6b128bc89d3aed4b9

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_bedrock-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_bedrock-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33c42c50783da9fc581160925075e3beb6c905790ce450aa6ffdee2e1e6c46ea
MD5 e6c94bd5b9d13bb5f4f6121dff1f7595
BLAKE2b-256 94f7be4180e2b24310be63ff6cb2b492c257cf5d0b72eccf0094730741ffa77a

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