Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
/ aspnet-ai Public archive

Enabling Application Insights telemetry on an ASP.NET Core web applications

License

Notifications You must be signed in to change notification settings

hd9/aspnet-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

aspnet-ai

Sample code on how to enable Application Insights telemetry on an ASP.NET Core web applications.

Fore more information, visit: Adding Application Insights telemetry to your ASP.NET Core website | HildenCo

Running

This repo contains 3 solutions:

  • Simple Application Insights demo
  • Suppressing Telemetry on Application Insights demo
  • Simple Alert based on Application Insights demo

Simple Application Insights demo

To run the base version, use the code available on master branch:

git clone https://github.com/hd9/aspnet-ai.git
cd aspnet-ai/src
# add your instrumentation key to src/appSettings.Development.json
dotnet run

Simple Telemetry demo

To run the version that suppresses telemetry, run the code available on the telemetry branch:

git clone https://github.com/hd9/aspnet-ai.git
git checkout telemetry
cd aspnet-ai/src
# add your instrumentation key to src/appSettings.Development.json
dotnet run

Simple Alert demo

To run the version that produces Application Insights alerts, run the code available on the alerts branch:

git clone https://github.com/hd9/aspnet-ai.git
git checkout alerts
cd aspnet-ai/src
# add your instrumentation key to src/appSettings.Development.json
dotnet run

Configuration

To work, this solution requires a valid Instrumentation Key on your appSettings.json.

Thanks!

And don't forget to visit blog.hildenco.com.

License

MIT

About

Enabling Application Insights telemetry on an ASP.NET Core web applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published