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


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

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_tk_karini-0.45.3.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock_tk_karini-0.45.3.tar.gz
Algorithm Hash digest
SHA256 66cdfbe098d4f57e8f9618519264bb6ace067f2ca345f24a36a67cca4af36a23
MD5 d828e319e1d49b1165085ca43bb48b7e
BLAKE2b-256 d19d555803941c985b974031d7356986bb12e7f2490e1451fa8c94206a7b1092

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_bedrock_tk_karini-0.45.3-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_bedrock_tk_karini-0.45.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b74873162a37f2df12205e62ac282da2ac3f896d11d4b766222342dbb4de2892
MD5 992abafc07ebec07b5fbd20bd70acf66
BLAKE2b-256 5d96ad5e5310816063aa82ed9b6aca22213e5dd0efee7347a3c17d699e0d7bef

See more details on using hashes here.

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