Skip to content

AlexBulankou/ai-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!