microsoft-opentelemetry
Minimal template for the Microsoft OpenTelemetry distro for Python
Decision gist · record as of 2026-08-14
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
Alternatives
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.
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.
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
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 24 packagesazure-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 |
| Maintenance | Actively maintained 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 726,926 / month, #5,218 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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
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”
- microsoft-opentelemetryProvides a unified OpenTelemetry distribution for Python that…
- azure-monitor-events-extensionSends custom events to Azure Application Insights using…
- azure-monitor-opentelemetryBundles OpenTelemetry SDK and Azure Monitor exporters to instrument…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
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.
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.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
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.
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.
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.
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