Registry / azure / azure-monitor-events-extension

azure-monitor-events-extension

JSON →
library0.1.0pypiunverified

This package, `azure-monitor-events-extension`, is an older, likely superseded component for integrating Python applications with Azure Monitor. It has not been updated since its `0.1.0` release in 2021. For modern Python applications, it is highly recommended to use the OpenTelemetry-native packages `azure-monitor-opentelemetry-distro` and `azure-monitor-opentelemetry-exporter` for robust and up-to-date Azure Monitor integration.

pip install azure-monitor-events-extension
INSTALL
IMPORT
SIG · AZURE-MONITOR-EVEN
A
azure-monitor-events-extension
azureenv0.1.0
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
2/4 runs
2/4 runs
py 3.11
2/4 runs
2/4 runs
py 3.12
2/4 runs
2/4 runs
py 3.13
2/4 runs
2/4 runs
py 3.9
2/4 runs
2/4 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

configure_opentelemetry
from azure.monitor.opentelemetry.distro import configure_opentelemetry
from azure_monitor_events_extension import configure_opentelemetry
The `azure-monitor-events-extension` package does not expose a direct `configure_opentelemetry` function for general use. The modern and recommended way to configure OpenTelemetry for Azure Monitor is via `azure-monitor-opentelemetry-distro`.

This quickstart demonstrates how to integrate OpenTelemetry with Azure Monitor using the recommended and actively maintained `azure-monitor-opentelemetry-distro` package, which has superseded `azure-monitor-events-extension`. It configures the OpenTelemetry SDK to send telemetry to Azure Application Insights using a connection string.

import os from opentelemetry import trace from azure.monitor.opentelemetry.distro import configure_opentelemetry # NOTE: This quickstart demonstrates the recommended way using the *successor* library, # `azure-monitor-opentelemetry-distro`, not the deprecated `azure-monitor-events-extension`. # Configure OpenTelemetry to export to Azure Monitor configure_opentelemetry( connection_string=os.environ.get("APPLICATIONINSIGHTS_CONNECTION_STRING", "") ) # Example usage with OpenTelemetry tracer tracer = trace.get_tracer(__name__) with tracer.start_as_current_span("my-span"): print("Hello from my-span!") # In a real application, ensure the application stays alive long enough for telemetry to be sent. # For example, a web framework automatically handles this. For a script, you might need # to add a small delay or ensure there's ongoing activity.
Debug
Known issues
breakingThe `azure-monitor-events-extension` package is deprecated and considered abandoned. It has not received updates since its `0.1.0` release in 2021. Users should migrate to `azure-monitor-opentelemetry-distro` and `azure-monitor-opentelemetry-exporter` for current and supported Azure Monitor integration.
fix
Migrate your application to use `azure-monitor-opentelemetry-distro`. Uninstall `azure-monitor-events-extension` and install `pip install azure-monitor-opentelemetry-distro`.
affects: <=0.1.0
gotchaDespite its name, `azure-monitor-events-extension` refers to an older, custom implementation, not the current OpenTelemetry-native approach. Attempting to use it alongside modern OpenTelemetry SDKs will likely lead to conflicts or non-functional telemetry.
fix
Always use `azure-monitor-opentelemetry-distro` for standard OpenTelemetry integration with Azure Monitor. Refer to the official Azure Monitor Python documentation for the latest guidance.
affects: 0.1.0
gotchaThe package requires Python `>=3.7` but has not been tested or updated for newer Python versions (3.9, 3.10, 3.11, 3.12+). Compatibility with modern Python environments is not guaranteed.
fix
Use the actively maintained `azure-monitor-opentelemetry-distro` which supports recent Python versions (typically `>=3.7`).
affects: 0.1.0
Errors
Common errors & fixes
AttributeError: module 'azure_monitor_events_extension' has no attribute 'init'
Attempting to initialize or use `azure-monitor-events-extension` with an API pattern that either doesn't exist or is from a different, modern package.
fix
This package is deprecated. For Azure Monitor integration, install `azure-monitor-opentelemetry-distro` and use `from azure.monitor.opentelemetry.distro import configure_opentelemetry` instead.
Package 'azure-monitor-events-extension' conflicts with 'opentelemetry-sdk' version X.Y.Z
The `azure-monitor-events-extension` package likely depends on older, potentially incompatible versions of OpenTelemetry or other libraries, leading to dependency conflicts when installed with modern packages.
fix
This package is deprecated. It is strongly recommended to uninstall `azure-monitor-events-extension` and use the officially supported `azure-monitor-opentelemetry-distro` and `azure-monitor-opentelemetry-exporter` for Azure Monitor integration.
Upgrade
Version history
0.1.0latest on PyPI · released Sep 19, 2023
Audit
Dependencies
opentelemetry-sdkrequiredThis package, if functional, would depend on older OpenTelemetry SDK versions. Modern Azure Monitor integration relies on `azure-monitor-opentelemetry-distro` and its dependencies.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
azure-monitor-events-extension — pip install azure-monitor-events-extension · libregistry