Why is Application Insights writing a ton of stuff to my output?

David Thielen 3,141 Reputation points
2024-08-04T20:33:52.4333333+00:00

Hi all;

I am seeing the following in my output when running my web app after incorporating Application Insights. It's not being written to the logs, just the output.

I have a Blazor Interactive Server and am running on my desktop using Visual Studio and whatever Visual Studio uses as an app server

Application Insights Telemetry: {"name":"AppExceptions","time":"2024-08-04T20:28:00.5284823Z","iKey":"057f4256-e88b-47df-9130-a5f824096b59","tags":{"ai.application.ver":"1.0.16.4","ai.cloud.roleInstance":"Jasmine","ai.operation.id":"29842fc0d29bbf769c820445cc1ef5f4","ai.operation.parentId":"763ba8a59e72dfc5","ai.operation.name":"CONNECT /_blazor","ai.location.ip":"::1","ai.internal.sdkVersion":"il:2.22.0-997","ai.internal.nodeName":"Jasmine"},"data":{"baseType":"ExceptionData","baseData":{"ver":2,"exceptions":[{"id":26232554,"outerId":0,"typeName":"System.NullReferenceException","message":"Object reference not set to an instance of an object.","hasFullStack":true,"parsedStack":[{"level":0,"method":"LouisHowe.web.Pages.EventJob.CreateEvent+<>c__DisplayClass144_8.<BuildRenderTree>b__62","assembly":"LouisHowe.web, Version=1.0.16.4, Culture=neutral, PublicKeyToken=null","line":0},{"level":1,"method":"Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":2,"method":"DevExpress.Blazor.Internal.GridEditCell+<>c__DisplayClass0_0.<BuildRenderTree>b__1","assembly":"DevExpress.Blazor.v23.2, Version=23.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a","line":0},{"level":3,"method":"Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":4,"method":"Microsoft.AspNetCore.Components.CascadingValue`1.Render","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":5,"method":"Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0}]}],"severityLevel":"Error","properties":{"AspNetCoreEnvironment":"Development","ConnectionId":"0HN5KOES4V75T","RequestId":"0HN5KOES4V75T:00000019","_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')","FormattedMessage":"NullReferenceException: 27f2a2af-482c-448a-98b6-9657f1963fd8","DeveloperMode":"true","TransportConnectionId":"dZP4sDre59k4M7YBeSBxFA","RequestPath":"/_blazor","ParentId":"0000000000000000","SpanId":"763ba8a59e72dfc5","OriginalFormat":"NullReferenceException: 27f2a2af-482c-448a-98b6-9657f1963fd8","CategoryName":"LouisHowe.web.Shared.MainLayout","TraceId":"29842fc0d29bbf769c820445cc1ef5f4"}}}}
Application Insights Telemetry: {"name":"AppExceptions","time":"2024-08-04T20:28:00.5307731Z","iKey":"057f4256-e88b-47df-9130-a5f824096b59","tags":{"ai.application.ver":"1.0.16.4","ai.cloud.roleInstance":"Jasmine","ai.operation.id":"29842fc0d29bbf769c820445cc1ef5f4","ai.operation.parentId":"763ba8a59e72dfc5","ai.operation.name":"CONNECT /_blazor","ai.location.ip":"::1","ai.internal.sdkVersion":"dotnetc:2.22.0-997","ai.internal.nodeName":"Jasmine"},"data":{"baseType":"ExceptionData","baseData":{"ver":2,"exceptions":[{"id":26232554,"outerId":0,"typeName":"System.NullReferenceException","message":"Object reference not set to an instance of an object.","hasFullStack":true,"parsedStack":[{"level":0,"method":"LouisHowe.web.Pages.EventJob.CreateEvent+<>c__DisplayClass144_8.<BuildRenderTree>b__62","assembly":"LouisHowe.web, Version=1.0.16.4, Culture=neutral, PublicKeyToken=null","line":0},{"level":1,"method":"Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":2,"method":"DevExpress.Blazor.Internal.GridEditCell+<>c__DisplayClass0_0.<BuildRenderTree>b__1","assembly":"DevExpress.Blazor.v23.2, Version=23.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a","line":0},{"level":3,"method":"Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":4,"method":"Microsoft.AspNetCore.Components.CascadingValue`1.Render","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0},{"level":5,"method":"Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch","assembly":"Microsoft.AspNetCore.Components, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60","line":0}]}],"properties":{"AspNetCoreEnvironment":"Development","_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')","DeveloperMode":"true"}}}}
Application Insights Telemetry: {"name":"AppMetrics","time":"2024-08-04T20:27:01.0000000Z","iKey":"057f4256-e88b-47df-9130-a5f824096b59","tags":{"ai.application.ver":"1.0.16.4","ai.cloud.roleInstance":"Jasmine","ai.internal.sdkVersion":"m-agg2c:2.22.0-997","ai.internal.nodeName":"Jasmine"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"Exceptions","kind":"Aggregation","value":3,"count":3,"min":1,"max":1,"stdDev":0}],"properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true","cloud/roleInstance":"Jasmine","_MS.AggregationIntervalMs":"60000","_MS.IsAutocollected":"True","cloud/roleName":"Unknown","_MS.MetricId":"exceptions/count"}}}}

Do I need to worry about this? And is there a way to turn it off because it is 90% of the output and so makes it hard to find useful messages in the output.

thanks - dave

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,341 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. akinbade abiola 19,210 Reputation points
    2024-08-04T22:16:05.86+00:00

    This output is normal.

    Do you need to worry about this? No.

    You can adjust logging levels to reduce output:

    "Logging": {
      "ApplicationInsights": {
        "LogLevel": {
          "Default": "Warning"
        }
      }
    }
    
    

    See very detailed thread on logging here: https://learn.microsoft.com/en-us/answers/questions/492274/filter-logging-for-azure-application-insights

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


  2. Sergio Loureiro (External) 0 Reputation points
    2024-11-25T10:53:54.3666667+00:00

    Nobody asked for this feature.

    It should have a toggle in Visual Studio graphic interface, and to be OFF BY DEFAULT.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.