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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_bedrock-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0cfe5a5869b9c638cdf7662a9ef70fa65d929646ddee04fd41067713a98229a4
MD5 859c72786c1aebeb219a2f63973dbadc
BLAKE2b-256 78e719f9c39b6eb28c13b273f802f4ada320c27529d116592e5eddb4fcc0e7b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_bedrock-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de82407041f333ccb214e88b04488b7ce10cc9f717f6aec2cebe6d4759546728
MD5 be00e08a6509ac44e32324a3bce99ab2
BLAKE2b-256 b1480709677ad226ccf4c5250e70dde3acdd27acef0f0a4ac5ba4ca9aba36afa

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