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
- Download URL: opentelemetry_instrumentation_bedrock-0.33.12.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5a3f7044edff020d62b3e94f0ea543da4e5c23b7cdb72642692952843b0003 |
|
MD5 | b917a908c64ea437bb856df0469c4ae6 |
|
BLAKE2b-256 | 955a346c17fca4dd929ce6be8cf402cd3580bb6e4da42ca8eadd2b6f2b4907e4 |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_bedrock-0.33.12.tar.gz
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_bedrock-0.33.12.tar.gz
- Subject digest:
6f5a3f7044edff020d62b3e94f0ea543da4e5c23b7cdb72642692952843b0003
- Sigstore transparency entry: 148749178
- Sigstore integration time:
- Predicate type:
File details
Details for the file opentelemetry_instrumentation_bedrock-0.33.12-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_bedrock-0.33.12-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9749898c52643d5027b45ac92bf4d3fd39b83adfaf68705a0ed9b4f04b8afae |
|
MD5 | 59e51dfa357f450e7bcd98898e64deec |
|
BLAKE2b-256 | d104d93857519edd693e72e6d9ba08a6f0feda2ca21a08e3bc02cbfe242495f6 |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_bedrock-0.33.12-py3-none-any.whl
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_bedrock-0.33.12-py3-none-any.whl
- Subject digest:
f9749898c52643d5027b45ac92bf4d3fd39b83adfaf68705a0ed9b4f04b8afae
- Sigstore transparency entry: 148749234
- Sigstore integration time:
- Predicate type: