skillfed

opentelemetry-instrumentation-sagemaker

OpenTelemetry SageMaker instrumentation

opentelemetry-instrumentation-sagemaker v0.62.3 6.8M downloads/30d#1,847 on PyPI7,377
Permissive license Apache-2.0 Active released

What it is and what it does

This package is an OpenTelemetry instrumentation plugin that automatically intercepts and traces calls to Amazon SageMaker endpoints made through Boto3. When activated, it wraps SageMaker API calls and records them as spans, capturing request bodies and response data by default to give visibility into model invocations and help debug LLM application behavior.

The instrumentation is designed for developers building observability into applications that invoke SageMaker models. It integrates with the OpenTelemetry ecosystem, requiring opentelemetry-api, opentelemetry-instrumentation, and semantic convention packages. By default it logs endpoint request and response content to span attributes; this can be disabled via the TRACELOOP_TRACE_CONTENT environment variable if privacy or trace size is a concern.

Use it for:

  • Debug LLM application behavior by tracing what data is sent to and returned from SageMaker endpoints.
  • Monitor SageMaker endpoint performance and latency in production observability systems.
  • Evaluate output quality by capturing model responses in traces for later analysis.
  • Reduce trace size in high-volume scenarios by disabling request/response body logging.
  • Integrate SageMaker calls into a broader OpenTelemetry tracing pipeline across your application.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Automatically captures traces of Amazon SageMaker model invocations made through Boto3, recording request and response data as OpenTelemetry spans for observability and debugging.

Yes, if you are invoking SageMaker endpoints via Boto3 and need observability. The package is actively maintained, has no known vulnerabilities, installs cleanly, and integrates directly into OpenTelemetry. The privacy control via TRACELOOP_TRACE_CONTENT is a practical feature for sensitive workloads. Install it as part of your observability setup.

Install

opentelemetry-instrumentation-sagemaker on PyPI

pip

pip install opentelemetry-instrumentation-sagemaker

uv

uv add opentelemetry-instrumentation-sagemaker

poetry

poetry add opentelemetry-instrumentation-sagemaker

Installing opentelemetry-instrumentation-sagemaker

Before you install

Low friction install with a pure-Python wheel. Actively maintained as of 2026-08-10 with recent releases, and depends only on core OpenTelemetry packages.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install opentelemetry-instrumentation-sagemaker

from opentelemetry.instrumentation.sagemaker import SageMakerInstrumentor

SageMakerInstrumentor().instrument()

Requires Python 3.10 or later; requires an active OpenTelemetry trace provider to be configured separately.

Verify before relying

  • Whether the instrumentation works with all SageMaker endpoint types or only specific model types.
  • Performance overhead of tracing on high-volume endpoint invocations.
  • Compatibility with non-Boto3 SageMaker clients or SDKs.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 6,795,401/month — #1,847 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opentelemetry_instrumentation_sagemaker-0.62.3-py3-none-any.whl

Tags

sagemaker tracingopentelemetry sagemakerboto3 instrumentationllm model tracingsagemaker observabilityendpoint request tracingai model monitoring
observabilityaws-sagemakerllm-tracing

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-mistralai

Automatically captures and traces calls to the…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-bedrock

Adds distributed tracing to AWS Bedrock API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-groq

Automatically captures traces of Groq SDK API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-openai

Captures traces of OpenAI API calls (prompts,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-writer

Automatically traces calls to Writer's API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto

Adds distributed tracing to AWS SDK (Boto)…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-watsonx

Automatically captures and traces IBM Watsonx…

permissive · top 5,000 on PyPI

model-hosting-container-standards

Provides standardized FastAPI-based handlers…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-replicate

Adds OpenTelemetry tracing to Replicate API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-agno

Automatically instruments the Agno framework to…

permissive · top 5,000 on PyPI