skillfed

opencensus-ext-azure

OpenCensus Azure Monitor Exporter

opencensus-ext-azure v1.1.15 11.1M downloads/30d#1,419 on PyPI676
Permissive license Apache-2.0 Abandoned released

What it is and what it does

opencensus-ext-azure is an exporter that bridges Python applications instrumented with OpenCensus to Azure Monitor (Application Insights). It captures logs, metrics, traces, and performance counters and sends them to Azure Monitor for centralized observability. The package integrates with Python's standard logging module and OpenCensus's stats and tracing APIs, allowing developers to emit telemetry without rewriting application code.

The package depends on azure-core, azure-identity, opencensus, psutil, and requests. However, it is no longer maintained—the repository was archived and the package reached end-of-support in September 2024. The maintainers explicitly recommend migrating to the Azure Monitor OpenTelemetry exporters or the Azure Monitor OpenTelemetry Distro for new projects.

Use it for:

  • Send application logs to Azure Monitor for centralized log aggregation and search.
  • Export custom metrics and performance counters to Azure Monitor for dashboarding and alerting.
  • Correlate logs with distributed traces by enriching log records with trace and span IDs.
  • Monitor application health and performance using Azure Monitor's built-in analytics on exported telemetry.
  • Integrate legacy Python applications already using OpenCensus with Azure's observability platform.

Worth the install?

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

Exports logs, metrics, and traces from Python applications to Azure Monitor using the OpenCensus instrumentation framework.

No. The package is abandoned and officially unsupported since September 2024. While it has low install friction and no known vulnerabilities, the maintainers explicitly recommend migrating to Azure Monitor OpenTelemetry exporters instead. Use this package only if you are maintaining legacy code already dependent on it; for new projects, adopt the OpenTelemetry-based solution.

Install

opencensus-ext-azure on PyPI

pip

pip install opencensus-ext-azure

uv

uv add opencensus-ext-azure

poetry

poetry add opencensus-ext-azure

Installing opencensus-ext-azure

Before you install

Low install friction with five stable runtime dependencies. However, the package is abandoned as of June 2025 and officially unsupported since September 2024—the maintainers recommend migrating to Azure Monitor OpenTelemetry exporters instead.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install opencensus-ext-azure

import logging
from opencensus.ext.azure.log_exporter import AzureLogHandler

logger = logging.getLogger(__name__)
logger.addHandler(AzureLogHandler(connection_string='InstrumentationKey=<key>'))
logger.warning('Hello, World!')

Requires an Azure Monitor resource and instrumentation key or connection string, typically set via APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.

Verify before relying

  • Whether the package still functions reliably with current Azure Monitor API versions despite abandonment
  • Compatibility with Python versions beyond 3.9, given the classifier list ends there

Package facts

License Apache-2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 5 — azure-core, azure-identity, opencensus, psutil, requests
Maintenance abandoned — 437 days since the last release
Last repo commit (repository archived)
First released
Downloads 11,066,198/month — #1,419 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opencensus_ext_azure-1.1.15-py2.py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: End Users/DesktopLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

azure monitor exporteropencensus azure integrationpython logging to azureazure application insights exporterdistributed tracing azuremetrics export azure monitorpython telemetry azure
deprecatedazure-integrationobservability

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

azure-monitor-opentelemetry-exporter

Exports OpenTelemetry traces, metrics, and logs…

permissive · top 1,000 on PyPI

applicationinsights

Sends telemetry events, metrics, and traces to…

permissive · top 5,000 on PyPI

opencensus

OpenCensus provides distributed tracing and…

permissive · top 1,000 on PyPI

azure-monitor-events-extension

Sends custom events to Azure Application…

permissive · top 15,000 on PyPI

azure-monitor-opentelemetry

Bundles OpenTelemetry SDK and Azure Monitor…

permissive · top 5,000 on PyPI

opencensus-ext-logging

Enriches Python log records with OpenCensus…

permissive · top 15,000 on PyPI

logging-azure-rest

Provides a Python logging handler that…

permissive · top 5,000 on PyPI

opencensus-ext-flask

Adds distributed tracing instrumentation to…

permissive · top 15,000 on PyPI

microsoft-opentelemetry

Provides a unified OpenTelemetry distribution…

permissive · top 15,000 on PyPI

azure-core-tracing-opentelemetry

Integrates Azure SDK clients with OpenTelemetry…

unclear · top 5,000 on PyPI