Base solution for your next web application
Open Closed

Application Insights #7982


User avatar
0
BobIngham created

I have read the notes against this issue in the forum for Application Insights. At one stage @walkerscott states:

we have a solution to this. We save our App Insights Instrumentation Key to AbpSettings and this then gets loaded at startup. We also do something similar for Google Analytics.

We'd be willing to contribute this to AspNetZero repo via PR if the team is interested?

I have followed instructions for implementing Application Insights here: Application Insights for ASP.NET Core applications but I am told by my Azure support guys that we're not getting metrics. In the same forum article mentioned above @mitch states:

A vote from me too. It's been a real pain to try to get it to integrate.

Can anyone shed any light on integration of Application Insights with the Zero framework. For me this is a bit of a show stopper because I want to implement an event hub in Azure to feed my logs through to Datadog or Sumo Logic. Any help gratefully appreciated.


3 Answer(s)
  • User Avatar
    0
    BobIngham created

    Does anyone have any guidance for implementing Application Insights into Zero?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bobingham

    I assume you have tried to integrate it. Do you get any exception ?

  • User Avatar
    0
    BobIngham created

    For some reason the standard implementation of Application Insights in the Zero project does not complete the installation. What was missing was this line in Web.Host Startup.cs:

    public IServiceProvider ConfigureServices(IServiceCollection services)
    {
        //BI 20191115 0.14.1
        // The following line enables Application Insights telemetry collection.
        services.AddApplicationInsightsTelemetry();
    

    Hope this helps someone else.