In my earlier posts you saw various support tools in Visual Studio 2015 or later that help improve the developer experience while using detailed information about the application. This article also talks about another small but really useful feature that helps you track/monitor the number of telemetry events sent directly from Visual Studio. This will help you check if your events are sent correctly without opening the port multiple times.

Visual Studio provides a tiny toolbar for Application Insights that shows the count of Telemetry events sent from the Visual Studio itself.

01 How to get number of Application Insights events from Visual Studio 2015 - https://codeconfig.in

If you expand it, you will also find an option to disable the first time event notification.

21 How to get number of Application Insights events from Visual Studio 2015 - https://codeconfig.in

How can we Test it?

Step 1 :

Follow the Adding Application Insights to a Windows 10 Universal App article to enable Application Insights.

Step 2:

Add a simple button and send some custom telemetry event from the application.

41 How to get number of Application Insights events from Visual Studio 2015 - https://codeconfig.in

Step 3 :

Run the application in debug mode, and click on Button, you should be able to see the count is getting increased on every click on the button.

In above post you have learned about “How to get number of Application Insights events from Visual Studio”. Hope this will help you in your daily development practices.

You can check more article on our website under C# section HERE or you can also check same on Micrsoft Docs too.


Leave a Reply

Your email address will not be published. Required fields are marked *

Explore More

Working With File Class In C#

In C#, ‘File’ class provides many static methods for moving, copying, and deleting files. These Static methods involve moving a file and copying and deleting a file also. Let’s check

How to Read a Text File in C#

In C# ‘File’ class provides static methods to read given text file data. The File.ReadAllText() method opens a text file, reads all the text present in the file into a

C# | How to use Interface references

In C#, you’re permitted to make a reference variable of an interface type or in other words, you’re permitted to form an interface reference variable. Such kind of variable can