$npx skillfedfor your agent

microsoft-opentelemetry

Minimal template for the Microsoft OpenTelemetry distro for Python

With conditionsPyPI MonitoringReleased Aug 2026726.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — microsoft_opentelemetry-1.3.7-py3-none-any.whl
v1.3.7 · released 2026-08-05 · Python >=3.10 · 24 runtime deps: azure-core, azure-core-tracing-opentelemetry, azure-monitor-opentelemetry-exporter, opentelemetry-sdk, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-instrumentation, opentelemetry-instrumentation-django

Yes, if you are building on Azure or need multi-destination observability. The package eliminates boilerplate for OpenTelemetry setup and provides seamless integration with Azure Monitor and Agent 365. The 24 runtime dependencies are substantial but necessary for the breadth of instrumentation it offers. Install it if you want a batteries-included distribution; skip it if you need minimal dependencies or are not using Azure.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Azure Monitor export requires an Application Insights resource and connection string or Azure credentials.
  • Low install friction with a pure Python wheel.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive). No restrictions on commercial or private use.

last release 2026-08-05 (9 days) · last repo commit 2026-08-13 · 1 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 726,926 downloads/mo, #5,218 on PyPI

Verify before relying

pip install microsoft-opentelemetry

from microsoft.opentelemetry import use_microsoft_opentelemetry

use_microsoft_opentelemetry(
    enable_azure_monitor=True,
    azure_monitor_connection_string="InstrumentationKey=...;IngestionEndpoint=...",
)
  • Whether the 24 runtime dependencies are all required or if subsets can be installed conditionally based on enabled exporters.
  • Performance overhead of automatic instrumentation across all included libraries when only a subset is needed.
Same gist for agents: .md · .json

What it is and what it does

microsoft-opentelemetry is a Microsoft-maintained OpenTelemetry distribution that bundles the SDK, instrumentation plugins, and exporters into a single package. It abstracts away the complexity of configuring tracing, metrics, and logging pipelines by providing a single entry point—the `use_microsoft_opentelemetry()` function—that handles setup for Azure Monitor, OTLP-compatible backends, and Microsoft Agent 365 simultaneously.

The package automatically instruments popular Python frameworks (Django, FastAPI, Flask, etc.) and HTTP libraries (requests, httpx, urllib3, aiohttp) out of the box. It supports environment-variable-based configuration for sampling strategies, offline storage for Azure Monitor, and flexible token resolution for Agent 365 authentication. Developers can enable or disable individual pipelines (logging, tracing, metrics) and customize exporters, span processors, and metric readers as needed.

Use it for

  • Enable distributed tracing across a Django or FastAPI application with a single function call, automatically capturing HTTP spans and database queries.
  • Export telemetry to Azure Monitor with offline retry storage for resilience in unreliable network conditions.
  • Send traces to both Azure Monitor and an OTLP-compatible backend (e.g., Jaeger, Grafana Loki) simultaneously for multi-destination observability.
  • Instrument AI agent applications with Agent 365 telemetry while propagating trace context to Azure Monitor for end-to-end visibility.
  • Configure trace sampling (fixed percentage or rate-limited) via environment variables without code changes.
  • Collect and correlate application logs, traces, and metrics from a single instrumentation setup.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building on Azure or need multi-destination observability.

The package eliminates boilerplate for OpenTelemetry setup and provides seamless integration with Azure Monitor and Agent 365. The 24 runtime dependencies are substantial but necessary for the breadth of instrumentation it offers. Install it if you want a batteries-included distribution; skip it if you need minimal dependencies or are not using Azure.

Install

microsoft-opentelemetry on PyPI

Before you install

Low install friction with a pure Python wheel. Active maintenance—released 2026-08-05, last commit 2026-08-13. Requires Python 3.10 or later and pulls in 24 runtime dependencies, including the full OpenTelemetry SDK and instrumentation libraries for Django, FastAPI, Flask, and other frameworks.

Requires Python 3.10 or later. Azure Monitor export requires an Application Insights resource and connection string or Azure credentials.

License in practice

MIT license (permissive). No restrictions on commercial or private use.

Quickstart

pip install microsoft-opentelemetry

from microsoft.opentelemetry import use_microsoft_opentelemetry

use_microsoft_opentelemetry(
    enable_azure_monitor=True,
    azure_monitor_connection_string="InstrumentationKey=...;IngestionEndpoint=...",
)

Verify before relying

  • Whether the 24 runtime dependencies are all required or if subsets can be installed conditionally based on enabled exporters.
  • Performance overhead of automatic instrumentation across all included libraries when only a subset is needed.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
24 packages
azure-coreazure-core-tracing-opentelemetryazure-monitor-opentelemetry-exporteropentelemetry-sdkopentelemetry-apiopentelemetry-exporter-otlp-proto-httpopentelemetry-instrumentationopentelemetry-instrumentation-djangoopentelemetry-instrumentation-fastapiopentelemetry-instrumentation-flaskopentelemetry-instrumentation-httpxopentelemetry-instrumentation-psycopg2opentelemetry-instrumentation-requestsopentelemetry-instrumentation-urllibopentelemetry-instrumentation-urllib3opentelemetry-instrumentation-loggingopentelemetry-instrumentation-openai-agents-v2opentelemetry-instrumentation-openai-v2opentelemetry-resource-detector-azurewraptopentelemetry-util-genaiaiohttpPyJWTrequests
MaintenanceActively maintained 9 days since the last release
Last repo commit
First released
Downloads726,926 / month, #5,218 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: microsoft_opentelemetry-1.3.7-py3-none-any.whl

Tags

Capabilities
opentelemetry distribution pythonazure monitor instrumentationdistributed tracing setupobservability middlewareapplication performance monitoringotlp exporter configurationagent telemetry collection
Topics
observabilityazure-integrationinstrumentation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “azure monitor instrumentation”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also azure-monitor-opentelemetry · azure-monitor-opentelemetry-exporter · azure-monitor-events-extension · azure-core-tracing-opentelemetry · pytest-otel · opencensus-ext-azure · coralogix-opentelemetry · opentelemetry-exporter-otlp · opentelemetry-exporter-gcp-trace