OpenTelemetry SageMaker instrumentation
Project description
OpenTelemetry SageMaker Instrumentation
This library allows tracing of any models deployed on Amazon SageMaker and invoked with Boto3 to SageMaker.
Installation
pip install opentelemetry-instrumentation-sagemaker
Example usage
from opentelemetry.instrumentation.sagemaker import SageMakerInstrumentor
SageMakerInstrumentor().instrument()
Privacy
By default, this instrumentation logs SageMaker endpoint request bodies and responses 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_sagemaker-0.25.6.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_sagemaker-0.25.6.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12a223cff38c4756a26c8b847d438197ea0fa2d87bd1f31552614b2fb2d5e5f6 |
|
MD5 | c8eb68715310c14fbbdced6e48c4f103 |
|
BLAKE2b-256 | 9803f99f1bc5e05cf3383c23f4bfb696a0ed58f399f9d02da5536fc0ab84c53e |
File details
Details for the file opentelemetry_instrumentation_sagemaker-0.25.6-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_sagemaker-0.25.6-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39dbeb92f6ba7192cacc7004127c950ad819831df4b570a24cad511e042328cf |
|
MD5 | c8f15795cbc124635fd958cda2f71a87 |
|
BLAKE2b-256 | 7b86fdcafeab0c27d8016a665266f10b23567273bbb6a37ad2641db2f9f948e9 |