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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.8.tar.gz
Algorithm Hash digest
SHA256 f89ee8b2fd04fd62b91b2af56eda643102fdf64124a615ef3077050d0e00c04e
MD5 7d1ec2ebe7fd70d919d7e6ef875c844c
BLAKE2b-256 12883fd4783271fa98d14f4cb65767e870f462cbe44863a6989322d6614bb599

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c8ecaee921c401ce0e33ead20645f416603c7c8f4bf4167b5a59b1ea67a4b6
MD5 0b276b369ed356af97b3532b48d870e0
BLAKE2b-256 cee94975b40a2804f04f9d403cecb720b9d4eabc5d7bf56878540efd59d699a5

See more details on using hashes here.

Provenance

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