After finally getting the latest version of App Insights Extension installed into Visual Studio, its been a breath of fresh air to use.
Just a note, to get it installed, I had to go to to installed programs, hit modify on VS2015, make sure everything else was updated. Then run the installer 3 times, it failed twice, 3rd time worked.
Now its installed I get a new option under my config file in each of my projects called “search”.
This will open the Search window inside a tab in visual studio to allow me to search my application data. The first time you hit it you will need to login and link the project to the correct store though, after that it remembers.
From here you can filter for and find exceptions in your applications and view a whole host of information about them. Including information about the server, client, etc. But my favorite feature is the small blue link at the bottom.
Click on this will take you to the faulting function, it doesn’t take you to the faulting line though (which i think it should) but you can mouse over it to see the line.
One of the other nice features, which was also in the web portal. is the +/- 5 minutes search.
You can use this to run a search for all telemetry within 5 minutes either side of the exception. In the web portal there is also an option of “all telemetry of this session”, which is missing from the VS interface, I hope they will introduce this soon as well.
But the big advantage to this is if you have setup up App Insights for all of your tracking you will be able to see all of the following for that session or period:
- Other Exceptions
- Page Views
- Debug logging (Trace)
- Raw Requests to the web server
- Dependencies (SQL calls)
Lets take a look at some of the detail we get on the above for my +/- 5 Minute view
Below is an SQL dependency, this is logging all my queries. So I can see whats called, when, the time the query took to run, from which server, etc. This isn’t any extra code I had to write, App Insights will track all SQL queries that run from your application out of the box, once setup.
And dependencies won’t just be SQL, they will also be SOAP and REST requests to external web services.
Http Request monitoring the detail is pretty basic but useful.
And Page views you get some pretty basic info also. Not as good as some systems i have seen, but defiantly enough to help out with diagnosing exceptions.
I’ve been using this for a few days now and find it so easy to just open my solution in the morning and do a quick check for exceptions, narrow them down and fix them. Still needs another version or two before it has all the same features as the web interface, but defiantly worth a try if you have App Insights setup.