Application Insights Telemetry Stream from your browser


I just published the first version of Application Insights Telemetry Stream - it lets you view telemetry items from the browser as they are issued by Application Insights. This is helpful in situations when you need to see what is happening with your application right this very second and cannot get to Azure portal or when telemetry indexing by Application Insights pipeline is delayed. Essentially this add-on lets you view the same data you see in your Visual Studio debug output window, except from production.

Step 1. Install Application Insights

This assumes you already installed Application Insights, if you haven't please follow the steps here.

Step 2. Install ApplicationInsights.Stream Nuget

Make sure to check Pre-release option and search for ApplicationInsights.Stream in Visual Studio Nuget package manager or use "Install-Package ApplicationInsights.Stream -Pre" from Nuget Package Manager Console

Install ApplicationInsights.Stream using NuGet Package Manager

Install ApplicationInsights.Stream using NuGet Package Manager

Step 3. Update aistream:key property in web.config

Open web.config and change aistream:key setting to a custom value (it is set to 'test' by default). You may also consider changing path value to a custom path.

Don't forget to update aistream:key and optionally aistream:path, so it is not available to everyone visiting your site.

Step 4. Verify and deploy

Test it locally before deploying to production. Run the application locally and open the page specified is path (default is /aistream.html. You will see a page with a textbox, enter your key into textbox and press Start.

Enter key from web.config and click Start

Enter key from web.config and click Start

Start button should disappear - you are now intercepting all telemetry. Try opening a separate browser instance and generating some load, e.g. reloading the page. On the AI Stream page should see events that you can filter by typing in the textbox:

AI Telemetry Stream - from your browser

AI Telemetry Stream - from your browser

That's it - you are all set to use it - please share your feedback!

Comments (2)
  1. im jj says:

    What’s the delay time in viewing the event log?

    1. Pretty much instantly, as soon as event issue issued

Comments are closed.

Skip to main content