microsoft / ApplicationInsights-node.js

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

Add support for Functions programming model v4 #1181

Closed ejizba closed 10 months ago

ejizba commented 11 months ago

Here's a blog post about the v4 model, if you want more info: https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-functions-version-4-of-the-node-js-programming-model-is-in/ba-p/3773541

It's currently in preview, but we plan to GA pretty soon. The v4 model cleaned up some of the invocation context and request objects, which is the pretty much the only reason the applicationinsights package has to do anything.

Fixes https://github.com/Azure/azure-functions-nodejs-library/issues/110

My testing

I have a v4 http trigger making this get request inside the function:

await axios.get('https://functionscdn.azureedge.net/public/cli-feed-v4.json');

And it's showing up under the overarching http trigger request in app insights, so I think that means it's working.

Screenshot 2023-08-10 at 5 37 39 PM
ejizba commented 11 months ago

cc @hossam-nasr @hectorhdzg

ejizba commented 10 months ago

ping @hectorhdzg

hectorhdzg commented 10 months ago

@ejizba thanks for updating this, I will take a look soon, I had been kind of busy last couple of days.