Using Python for Azure Function with Application Insights Integration enabled to log trace messages.
Not all logs were written to application insights, I've also found an error message in application insights.
AI: Local storage access has resulted in an error (User: ) (CustomFolder: ). If you want Application Insights SDK to store telemetry locally on disk in case of transient network issues please give the process access to %LOCALAPPDATA% or %TEMP% folder. If application is running in non-windows platform, create StorageFolder yourself, and set ServerTelemetryChannel.StorageFolder to the custom folder name. After you gave access to the folder you need to restart the process. Currently monitoring will continue but if telemetry cannot be sent it will be dropped. Error message
Please provide the following:
Provide the steps required to reproduce the problem:
Sample codes
# ...
import logging
# ...
logging.info("some logs...")
Should have all trace messages in application insights
Some trace messages are missing, and an error indicates required folder were not created/no permission to access
N/A
Provide any related information