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.42.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.42.0.tar.gz
Algorithm Hash digest
SHA256 51ce521d7c546f0c34aa92f1fa8a83579d1b65d9a981d87d1f4ef320a2c1778b
MD5 1ac688f7e76782c4868892d43edacedf
BLAKE2b-256 40e1146c00605243a842ed58006b3b98b836d2c950af12a3377b5beaebb14a48

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_sagemaker-0.42.0.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.42.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1218a037c9da7d2a8ddba3bf871ea83c2b93dcb6581b663d0652626943aeca37
MD5 cdf395515a8c1389b0098964fbdd0136
BLAKE2b-256 84902b71f23c46c62673f1a7780297a6b9421e02146e0c1da5f9e48158b808b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_sagemaker-0.42.0-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page