Azure/azure-functions-dotnet-worker

Application Insights Events missing in Visual Studio

Postlagerkarte opened this issue · 7 comments

Usually when adding Application Insights the Application Insights Search window in Visual Studio shows all the telemetry gathered (requests, exceptions, etc.).

Using a Azure Function with dotnet-isolated and the following configuration:

"applicationInsights": {
  "samplingSettings": {
    "isEnabled": true
  }

the data is not showing in Visual Studio. However, it is correctly pushed to AI Insight Portal.

Using VS 2019 - Version 16.10.0 Preview 2.1

We are trying to route this to the appropriate team for answers, as this is not specific to Functions.

Perhaps opening a question in the VS forums/uservoice might be a better route.

@fabiocav

Application Insights Events are available with .NET 3.x functions and are not available with .NET 5.x. So it seems it is specific to .NET 5 functions.

ai-func

Is there any news or workaround on this?

jviau commented

@Postlagerkarte this is still a VS feature, not one of ours. Visual Studio is performing some hook in the app startup to intercept Application Insights SDK telemetry. Because dotnet out-of-proc starts up differently and is a two-process model, that hook most likely no longer applies and their feature does not understand or model.

We will need to route this to the appropriate team so they can enable the hook for this scenario.

We're following up with the appropriate teams internally. Will provide an update once we have more information.

Any update on this issue?

Still doesn't work with the latest versions of isolated functions and visual studio 2022.