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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.10.tar.gz
Algorithm Hash digest
SHA256 959424d85544be2965a4497c2a2548704e755f327b69ebfba84cbe9ae6ca0430
MD5 a2895c4d00754a9a83afef12403fc73e
BLAKE2b-256 b2925fcca5dc0946f936c07f478ce870d225fba53a18b0d5546f46accb8d820f

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.10-py3-none-any.whl
Algorithm Hash digest
SHA256 87c8bed90b1a698cb55e860c7601a03cf05a04b4487b07b62c6a8ba054c41f3a
MD5 aa366cc9eacb155bd815418edc2b08a6
BLAKE2b-256 d0decfdc24ac2f5547a4a3a2537910a4e78ce2447109ff1e456dc783dbfad2a8

See more details on using hashes here.

Provenance

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