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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.39.2.tar.gz
Algorithm Hash digest
SHA256 fc2df958d20d02399079e6e27ff8f8dc02876f5ac6db2225e723cebac3518d0b
MD5 572b4034c0c02dcee132cae22fe9c683
BLAKE2b-256 13071fa2d3a473343ab78682236444bc94cad0d505e064d4c201edebbb5b3e30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.39.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c6fd904a7f49d19187cd5f4bcbdea5416df47da3eb4cc7b3860d53618da50a6
MD5 5bff725b2c7a6edc74c7f49127b05f0f
BLAKE2b-256 0e9b473cdec00bf8bdf43793e294ebee93d39879ebdfbed6b54a631fbfe7f0a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_sagemaker-0.39.2-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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page