-
Notifications
You must be signed in to change notification settings - Fork 250
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
Disable temp file creation if enable_local_storage set to be False #1208
Comments
Looking into this. |
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. |
@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 the enable_local_storage is kept.
My issue description seems not really precise, actually once opencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/common/__init__.py Line 69 in 3a2d8df
storage_path argument in statsbeat.py.
|
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 |
Describe your environment.
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
opencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/common/__init__.py
Line 69 in 3a2d8df
enable_local_storage
is disable. The root cause is inopencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/log_exporter/__init__.py
Line 267 in 3a2d8df
opencensus-python/contrib/opencensus-ext-azure/opencensus/ext/azure/statsbeat/statsbeat.py
Line 43 in 3a2d8df
process_options
function again which will create the temp file.What is the expected behavior?
No temp file should be created if
enable_local_storage
is set to False.What is the actual behavior?
Temp file created even if
enable_local_storage
is set to FalseThe text was updated successfully, but these errors were encountered: