Today it is possible to integrate Azure Functions with Visual Studio Application Insights by manually referencing the app insights SDK and updating your function code to send metric/event/exception data. Unfortunately this is lots of work, error prone, and still won't capture everything (e.g. if an error occurred while flushing an output, this will occur after execution has left user code and won't be captured by any user catch block).
Ideally, Azure Functions users could turn on first class app insights support, perhaps built on top of a rich host level eventing model as discussed in #281.
More discussion is required to figure out exactly what behavior needs to be configurable and what should be turned on by default once the customer enables the integration.
It would be great if a basic version of this can be added soon. For instance, if an instrumentation key is provided (app setting or in host.json), fire function execution events (success/failure, duration) and exceptions into App Insights. That would be a great start. The existing tooling in the functions portal for viewing metrics and exceptions are difficult to use, especially for apps that have a lot of invocations.
AWS Lambda will apparently have something similar soon with their X-Ray integration.
+1
+1
+2
A quick update - we're beginning work on this. Expect more activity on this topic in February.
Can you please provide an update on this as we are eagerly waiting on this?
Great progress. We've got private deployments running with Application Insights and the experience is a huge improvement, very excited. We'll be sharing some information how to use the private bits soon, but hopefully will have it fully integrated in the next 2-3 months.
If you're interested, we have an early preview of Application Insights integration available. See here for details: https://github.com/Azure/Azure-Functions/wiki/App-Insights-Early-Preview
Can this issue be closed now?
Yes, thanks.
Sent from my Windows Phone
From: Mathew Charlesnotifications@github.com
Sent: ‎5/‎23/‎2017 3:31 PM
To: Azure/azure-webjobs-sdk-scriptazure-webjobs-sdk-script@noreply.github.com
Cc: asvyatasvyat@hotmail.com; Manualmanual@noreply.github.com
Subject: Re: [Azure/azure-webjobs-sdk-script] First class App Insights integration (#727)
Can this issue be closed now?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-webjobs-sdk-script/issues/727#issuecomment-303551235, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANIhbR95QMa-0ttUn1iCtpAxokR7UmgAks5r814HgaJpZM4KIJqm.
@mathewc - it depends on if we want to wait until it's GA or not. I don't have a strong opinion on how to manage that.
We'll open new issues to address moving AI support to GA.
I filed a top level issue for tracking the GA here:
https://github.com/Azure/Azure-Functions/issues/388
Most helpful comment
A quick update - we're beginning work on this. Expect more activity on this topic in February.