be defensive in reading/parsing Azure Function "function.json" and "host.json" #3185
Labels
agent-nodejs
Make available for APM Agents project planning.
impact:high
Short-term priority; add to current release, or definitely next.
The Azure Functions instrumentation assumes that "function.json" and "../host.json" exist and are valid JSON in an Azure Function. If that isn't the case, then the APM agent (and the Azure Function worker process) could crash.
Those files are specified here:
My understanding is that a Node.js Azure Function is invalid and non-functional without those files, but I haven't tried hard to break it.
The APM agent should fallback to just not instrumenting the Azure Function (or limited instrumentation) if there is a problem reading those files.
The text was updated successfully, but these errors were encountered: