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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.6.tar.gz
Algorithm Hash digest
SHA256 4bc23fc75054313053ca285b911587f56dbccc92aad74babf38fd732fe891f39
MD5 69d6f685f174dea5412d440fb94a471d
BLAKE2b-256 d38ecdd78f04fbc42c36895ededbbf43cc53ef30a94e82f0d7b676ce35e3c7f4

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cdfd0abf79aeb02b5a129fe4f0751b7180fe1f9762e3827ac6995146245c672d
MD5 c199c18a04b70f2da1ba04709c9612fa
BLAKE2b-256 41bdd1382b6f23c6f077094986fa6711191af509c730fba81d4d89d3b9c2fa30

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

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