You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python Azure Function apps on runtime version 4.1038.400.2 on Linux Dedicated or Linux Consumption (not Flex Consumption) that include older versions of azure.core.*, opentelemetry-api, opentelemetry-sdk, or other packages that have these as dependencies may see opentelemetry-related errors during function indexing and function execution.
Examples of these errors include:
"ImportError: cannot import name '_OTEL_PYTHON_LOGGER_PROVIDER' from 'opentelemetry.environment_variables'"
"ImportError: cannot import name '_OTEL_PYTHON_EVENT_LOGGER_PROVIDER' from 'opentelemetry.environment_variables'"
"ModuleNotFoundError: No module named 'azure.core.tracing.ext.opentelemetry_span'"
"ImportError: cannot import name 'DependencyConflictError' from 'opentelemetry.instrumentation.dependencies"
"ImportError: cannot import name 'Distribution' from 'opentelemetry.util._importlib_metadata'"
"ImportError: cannot import name 'PackageNotFoundError' from 'opentelemetry.util._importlib_metadata'"
"ImportError: cannot import name 'distributions' from 'opentelemetry.util._importlib_metadata'"
Root Cause
A new feature was planned to include OpenTelemetry support by default, so users wouldn’t need to manually add any OpenTelemetry-related packages to their application dependencies. To enable this, the azure-monitor-opentelemetry-exporter and azure-monitor-opentelemetry libraries were added to the Python 3.9–3.11 images.
These images include the latest versions of the libraries. However, if an app brings an older version of one of the dependencies of the AzMon distro, it will result in a dependency conflict.
Mitigations
Update to opentelemetry-api>=1.28.0
Pin to runtime version 4.1036 using LinuxFxVersion
Long-Term Solution
We are in the process of rolling out a fix for this issue, which will be in runtime version 4.1038.400.3. ETA for the fix is ~1 week. The team is investigating different options to provide support for this new feature without impacting existing apps.
The text was updated successfully, but these errors were encountered:
The fix has been rolled out to all impacted regions. If anyone is still facing this issue, please restart your function app and ensure the runtime version is >= 4.1038.400.3.
Uh oh!
There was an error while loading. Please reload this page.
Background
Python Azure Function apps on runtime version 4.1038.400.2 on Linux Dedicated or Linux Consumption (not Flex Consumption) that include older versions of
azure.core.*
,opentelemetry-api
,opentelemetry-sdk
, or other packages that have these as dependencies may see opentelemetry-related errors during function indexing and function execution.Examples of these errors include:
Root Cause
A new feature was planned to include OpenTelemetry support by default, so users wouldn’t need to manually add any OpenTelemetry-related packages to their application dependencies. To enable this, the
azure-monitor-opentelemetry-exporter
andazure-monitor-opentelemetry
libraries were added to the Python 3.9–3.11 images.These images include the latest versions of the libraries. However, if an app brings an older version of one of the dependencies of the AzMon distro, it will result in a dependency conflict.
Mitigations
opentelemetry-api>=1.28.0
Long-Term Solution
We are in the process of rolling out a fix for this issue, which will be in runtime version 4.1038.400.3. ETA for the fix is ~1 week. The team is investigating different options to provide support for this new feature without impacting existing apps.
The text was updated successfully, but these errors were encountered: