microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EEXIST error when using functions_worker_process_count

ejizba opened this issue · comments

In Azure Functions, users can have multiple processes on the same instance if they use the functions_worker_process_count setting (docs here). Unfortunately that can lead to the following uncaught exception:

Error while saving data to disk: [object Error]{ stack: 'Error: EEXIST: file already exists, mkdir 'C:\local\Temp\appInsights-node...

I don't know the best behavior here, but at minimum this error should be handled more gracefully instead of throwing an uncaught exception which can crash the Node.js process.