Skip to main content

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


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

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.25.6.tar.gz
Algorithm Hash digest
SHA256 12a223cff38c4756a26c8b847d438197ea0fa2d87bd1f31552614b2fb2d5e5f6
MD5 c8eb68715310c14fbbdced6e48c4f103
BLAKE2b-256 9803f99f1bc5e05cf3383c23f4bfb696a0ed58f399f9d02da5536fc0ab84c53e

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_sagemaker-0.25.6-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.25.6-py3-none-any.whl
Algorithm Hash digest
SHA256 39dbeb92f6ba7192cacc7004127c950ad819831df4b570a24cad511e042328cf
MD5 c8f15795cbc124635fd958cda2f71a87
BLAKE2b-256 7b86fdcafeab0c27d8016a665266f10b23567273bbb6a37ad2641db2f9f948e9

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