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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.40.14.tar.gz
Algorithm Hash digest
SHA256 d1d31423a4d57239428d2b925e4801d61782b52adb9b80baf4e86c6f03b1ad06
MD5 7f4409f691102c34b8b3e1ea0b25d282
BLAKE2b-256 80134487c8b392fa64f3a6a9b781d608696ee24a5e8205e63c4c7746475bd8a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_sagemaker-0.40.14.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.40.14-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.40.14-py3-none-any.whl
Algorithm Hash digest
SHA256 28d7cc2c43b77bb69f20d8902c0bede9b828f9bfb7aa8ebe75fd542dcb8a6545
MD5 97857359614ce586dd5eb69e37bdbb6a
BLAKE2b-256 cd94c95a34ab1c675f970276543cc7936e045b5cecfce8ed0fa564547ff67343

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_sagemaker-0.40.14-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