Updated 14. Using Application Insights in eShopOnContainers (markdown)

RamonTC 2017-12-01 16:32:09 +01:00
parent bda5427af2
commit 128cbf2a6c

@ -17,7 +17,7 @@ Include the **UseApplicationInsights** extension method in your webhostbuilder l
Register AppInsights service by including the **AddApplicationInsightsTelemetry** extension method in your ConfigureServices Startup method located at Startup.cs. In case of using K8s or SF, add **EnableKubernetes** or **FabricTelemetryInitializer** method respectively: Register AppInsights service by including the **AddApplicationInsightsTelemetry** extension method in your ConfigureServices Startup method located at Startup.cs. In case of using K8s or SF, add **EnableKubernetes** or **FabricTelemetryInitializer** method respectively:
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/appinsights/appinsights-register.PNG"> <img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/appinsights/appinsights-register.PNG">
To enable the AppInsights in your ILogger,include the **AddAzureWebAppDiagnostics** and **AddApplicationInsights** ILoggerFactory extension method in your Configure Startup method located at Startup.cs: To enable AppInsights in your ILogger,include the **AddAzureWebAppDiagnostics** and **AddApplicationInsights** ILoggerFactory extension method in your Configure Startup method located at Startup.cs:
<img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/appinsights/appinsights-loggerfactory.PNG"> <img src="https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/img/appinsights/appinsights-loggerfactory.PNG">
### Create an App Insights service ### Create an App Insights service