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
{{ message }}
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
Steps to reproduce.
Running application with AzureEventHandler integrated with Python logging, logging configuration file has the following related structure
The reason that I want to disable the local storage is because my container has read only system, any writing should be disabled. However, the checking in
An easy workaround for read-only scenarios is to pass in a storage_path. Even though it won't be used, it will prevent the temp folder from being created.
In the meantime, since the statsbeat exporter assumes it has the ability to create a temp file, you can try disabling statsbeat but setting the environment variable APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL=true
Activity
jeremydvoss commentedon Jun 20, 2023
Looking into this.
jeremydvoss commentedon Jun 27, 2023
An easy workaround for read-only scenarios is to pass in a storage_path. Even though it won't be used, it will prevent the temp folder from being created.
liyakun commentedon Jun 27, 2023
@jeremydvoss thanks for sharing this workaround, I actually tested it before, but it is not working. The reason basically is that
opencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/statsbeat/statsbeat.py
Line 43 in 3a2d8df
storage_path
along, only theenable_local_storage
is kept.My issue description seems not really precise, actually once
enable_local_storage
is checked atopencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/common/__init__.py
Line 69 in 3a2d8df
storage_path
argument in statsbeat.py.jeremydvoss commentedon Sep 15, 2023
I see. Thanks for explaining. OpenCensus has been deprecated. I suggest migrating to our new OpenTelemetry Distro.
In the meantime, since the statsbeat exporter assumes it has the ability to create a temp file, you can try disabling statsbeat but setting the environment variable
APPLICATIONINSIGHTS_STATSBEAT_DISABLED_ALL=true