-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Unable to start Web-app because of diagnostic logging in Opentelemetry SDK. #38130
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Monitor - DistroMonitor OpenTelemetry DistroMonitor OpenTelemetry Distrocustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.Workflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Monitor - DistroMonitor OpenTelemetry DistroMonitor OpenTelemetry Distrocustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.Workflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Package Name: azure-monitor-opentelemetry
Package Version: 1.6.1
Operating System: Linux
Python Version: 3.11
Describe the bug:
I am deploying a python based web-app on Azure App service. This is docker image which is being pulled from Azure container registry.
The problem is coming from inside the Azure Monitor OpenTelmetry SDK. The sdk creates log files for diagnostic logging within the following directory :
/var/log/applicationinsights/(for linux based web apps). This can be seen from the following code from the above sdk. This File path has been hardcoded in the sdk and is not configurable. I start the app using an app_user, which has access to the app related volumes in the container but not to the above directory.This was added as part of the following bug: Adding diagnostic warning when distro detects RP attach (#34971)
Due to this the App does not start with the following stacktrace:
Expected behavior: There should be a way to disable diagnostic logging in Azure monitor.