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

overmind_instrumentation_bedrock-0.53.0.tar.gz (155.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file overmind_instrumentation_bedrock-0.53.0.tar.gz.

File metadata

  • Download URL: overmind_instrumentation_bedrock-0.53.0.tar.gz
  • Upload date:
  • Size: 155.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for overmind_instrumentation_bedrock-0.53.0.tar.gz
Algorithm Hash digest
SHA256 69d81d39abaa016753ff5e6ed11a5989fc1bde05af5959dd45bdcb284567e42e
MD5 e1de912d0c96a7de8d1da9c1bfe4cad9
BLAKE2b-256 25fd7ee745978cbdde522eb9c004efa0366b0b795a772dcb42a016f654b243fc

See more details on using hashes here.

File details

Details for the file overmind_instrumentation_bedrock-0.53.0-py3-none-any.whl.

File metadata

  • Download URL: overmind_instrumentation_bedrock-0.53.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for overmind_instrumentation_bedrock-0.53.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37248535908951fc31aca660ea1f1a4530a6f52026e581be84d94978f252d27b
MD5 604b096bbab4aa7ae59b6f85c843ef73
BLAKE2b-256 a87011646638d94d4ccde77d9bac16744adefc18ddcc2ac66efd01dc40ecf672

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