-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support OpenTelemetry Azure monitor distro #1509
Conversation
Since this is a telemetry sdk meant only to be loaded once, I have placed this in |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@lzchen I use OpenTelemetry in my app by calling
In my case, I do not with to use Azure Monitor Otel Distro, so I have: |
We will be rolling out images in which the There is an interim stage in which these images will not be pushed to production yet. If you would like to use the preview version of the worker, you can set the context in code manually for now as a workaround. |
As a followup to the above, we introduced this pr: #1621 We have decided to use separate app settings to control context propagation and enabling appinsights explitcily, the latter automatically also supports the former. |
Description
We are planning to support auto instrumentation of Azure monitor distro for azure functions. This allows automatic collection of telemetry using OpenTelemetry apis/sdks in users applications in azure functions. The current design is an opt-in model which is controlled by an Appsetting
PYTHON_ENABLE_OPENTELEMETRY
. The worker takes an indirect dependency on the distro package and attempts to load/instrument with it viaconfigure_azure_monitor()
api provided. The idea is to have this package already preinstalled into the functions image. Until the images are pushed out with this package, you may test this change by manually installing the distro onto your dev environment.Additionally, any exceptions thrown by the distro are caught and logged accordingly. A telemetry sdk should never cause a user's application to crash.
@gavin-aguiar @vrdmr