Application Insights -Interop with Application Insights SDK

David Thielen 3,121 Reputation points
2024-07-10T22:48:27.34+00:00

Hi all;

I am using Application Insights to profile a Blazor server app built on .NET 8. I set instrument your application to .NET Core.

It has an on/off for Interop with Application Insights SDK. What does that do? And do I want it on?

Also, I turned on every other option. Is there any reason to not turn some on?

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,274 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,778 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sina Salam 10,806 Reputation points
    2024-07-11T03:56:17.35+00:00

    Hello David Thielen,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    Problem

    I understand that you would like to affirm your actions with Application Insights -Interop with Application Insights SDK.

    Solution

    Based on your questions:

    It has an on/off for Interop with Application Insights SDK. What does that do? And do I want it on?

    • When you enable this option, it allows your Blazor server app to communicate with the Application Insights SDK.
    • Specifically, it enables the collection of telemetry data (such as requests, exceptions, dependencies, and custom events) from your app.
    • You should definitely keep this option on if you want to monitor your app's performance, diagnose issues, and gain insights into user behavior.

    Also, I turned on every other option. Is there any reason to not turn some on?

    Turning on other options depends on your specific monitoring needs and the type of telemetry you want to collect. For example:

    • Request Telemetry: Tracks incoming HTTP requests to your app. Useful for understanding user interactions.
    • Exception Telemetry: Captures exceptions and errors. Keep this on to identify issues.
    • Dependency Telemetry: Monitors external dependencies (e.g., database calls, API requests). Useful for performance analysis.
    • Custom Events and Metrics: Enables tracking of custom events and metrics. Use this for specific business-related telemetry.
    • Performance Counters: Collects system-level performance metrics. Useful for diagnosing bottlenecks.
    • Availability Telemetry: Monitors app availability by pinging specific endpoints.
    • Live Metrics Stream: Provides real-time insights during debugging or monitoring.
    • Sampling: Controls the amount of telemetry data sent to Application Insights. Adjust based on your desired data volume.

    In conclusion! Application Insights helps you understand how your app performs in production and while enabling all options can provide comprehensive insights, be mindful of data volume and cost implications. Also, evaluate which telemetry types are most relevant for your app's use case and regularly review telemetry data to ensure it aligns with your monitoring goals.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    1 person found this answer helpful.
    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.