locked
ASP.NET MVC logs appear in live metrics but not in performance tab RRS feed

  • Question

  • I have ASP.NET MVC webapp setup (.net core 2.2), and configured to use Application Insights.

    I have included the following nuget packages:

    - Microsoft.ApplicationInsights.AspNetCore 2.14.0

    - Microsoft.Extensions.Logging.ApplicationInsights 2.14.0

     

    In Startup.cs, I have configured the following:

    ```

    public void ConfigureServices(IServiceCollection services)

    {

          // etc

          services.AddApplicationInsightsTelemetry(instrumentationKey);

    }

    ```

    I have configured the application insights instrumentation key in the appsettings as follows:

    ```

      "ApplicationInsights": {

        "InstrumentationKey": "<my-instrumentation-key>"

      }

    ```

    When a request is made to the webapp, it appears in the live metrics stream.


    However, when trying to dive into the logs via the Peformance tab, I cannot see them appear. In other web apps that I have made in the past, I can now drill into the logs, API requests and all their details. Here, I cannot see them for some reason.


    Any guidance on what I might be missing in order for the logs to appear here? I need to be able to look a the details of the API requests, their full request URI, and possible stack traces in case a request raises an error. 

     

    Thanks you,

     

    Pieter

    PS: I cannot upload images since my account is not verified yet

    Friday, May 15, 2020 2:17 PM

All replies