microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
321 stars 138 forks source link

Add Exception Handling to File Name for Telemetry Caching #1267

Closed JacksonWeber closed 5 months ago

JacksonWeber commented 5 months ago

https://github.com/microsoft/ApplicationInsights-node.js/issues/1230

Append the process ID to the file name created for holding disk cached telemetry. This should resolve the issue with multiple Azure Functions cores attempting to read/write/delete the same file when functions are scaled to use multiple cores.

Extended this logic outside of Azure Functions so that in any case where the SDK could be run concurrently we create distinct cache files.