Is there any downside to adding ApplicationInsights when it is not running?

David Thielen 3,121 Reputation points
2024-07-10T16:03:51.3933333+00:00

Hi all;

Most of the time I have Application Insights turned off (it's expensive). When it is off, will I have a performance hit if the following code is called at the start of my Blazor server app?

builder.Logging.AddApplicationInsights();

builder.Services.AddApplicationInsightsTelemetry(); 

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,331 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,598 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 22,950 Reputation points MVP
    2024-07-10T17:23:57.38+00:00

    Hi there David Thielen

    Thanks for using QandA platform

    Hi David,

    This should not cause a significant performance hit. The overhead is minimal because no telemetry data is being sent.

    also check, There might be a small initialization overhead when the application starts.

    Since telemetry is not being sent, the main performance impact of Application Insights is avoided.

    In summary, i think the performance impact should be negligible when Application Insights is turned off.

    If this helps kindly accept the response thanks much.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.