-
Notifications
You must be signed in to change notification settings - Fork 227
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
support Azure Functions Node.js programming model v4 #3185
Comments
function.json file has been removed in the new Azure functions 4 implementation for javascript functions, meaning this is now an incompatibility as far as I can see. Here's a stacktrace:
Trying to find a way around this now. |
Any update on this issue? I am facing the same issue. I am using apm agent nodejs 4.5.0 and azure functions 4.1 and simple azure function setup fails with the |
Same issue for me :( "elastic-apm-node": "4.7.0" |
Since Azure Function v4, the invocaation context structure has changed. Closes: elastic#3185
Since Azure Function v4, the invocation context structure has changed. Closes: elastic#3185
See https://learn.microsoft.com/en-ca/azure/azure-functions/functions-node-upgrade-v4 This builds on the work in #4178 by @qzxlkj (type that 5 times fast), which provide most of the runtime code fix. The rest of this is adding testing and updated examples and docs. Refs: #4178 Closes: #3185
…4426) See https://learn.microsoft.com/en-ca/azure/azure-functions/functions-node-upgrade-v4 This builds on the work in #4178 by @qzxlkj, which provide most of the runtime code fix. The rest of this is adding testing and updated examples and docs. Refs: #4178 Closes: #3185
The fix for this is in [email protected]. |
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: