AlexBulankou / ai-stream

Application Insights Telemetry Stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application Insights Telemetry Stream

This Application Insights add-on 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. You can also see what telemetry items where sampled and what were sent as well as some instant charts. Essentially this add-on lets you view the same data you see in your Visual Studio debug output window, except from production.

AI Stream

Use at your own risk

  • This add-on is not part of Application Insights offering, it is not created or supported by Microsoft

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 Nuget

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. key setting

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 and press Start button 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 Stream That's it - you are all set to use it - please share your feedback!

About

Application Insights Telemetry Stream

License:MIT License


Languages

Language:JavaScript 71.3%Language:C# 24.7%Language:HTML 3.5%Language:CSS 0.6%Language:ASP 0.0%