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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.1.tar.gz
Algorithm Hash digest
SHA256 d7c0565707c112bb0d3343dcfe08e72bfad29d03a7a2b7650b16bce1b6737a8e
MD5 7cf07d2fec9873c447ed815040b8ee42
BLAKE2b-256 7ff249b17618fb5c38fb5c5c8879f5c018fbc5f14fb2c976bdd66cb268d6bdb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_sagemaker-0.33.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24616acdba348063c7a73b5955de9f62649e8ad01ad331968d6acb5bff285631
MD5 6907ac1cb463734a5bdad424592c1bf9
BLAKE2b-256 3c782174a5e7f06fed11ff62f7fea7ad3a4a1207a57ec40cdf291f0d03f47c2b

See more details on using hashes here.

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