Sitecore Application Insights Setup Checklist in Azure App Services
Collected from different places. For my own references:
Azure Application Insights
- Daily Volume Cap
Sitecore
- App_Config/ConnectionStrings.config
- appinsights.instrumentationkey
- App_Config/Sitecore/Azure/Sitecore.Cloud.ApplicationInsights.config
- App_Config/Sitecore/Azure/Sitecore.Cloud.ApplicationInsights.Counters.config
- Web.config
- <add key="storeSitecoreCountersInApplicationInsights:define" value="False" />
- <add key="useApplicationInsights:define" value="True" />
- <system.webServer><remove name="ApplicationInsightsWebTracking" /><add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" /><add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
- <system.web><trace enabled="false" requestLimit="50" pageOutput="false" traceMode="SortByTime" localOnly="true" />
- <system.diagnostics><trace autoflush="true" indentsize="0"><listeners><add name="myAppInsightsListener" type="Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener, Microsoft.ApplicationInsights.TraceListener" /></listeners></trace></system.diagnostics>
- ApplicationInsights.config
Sitecore Showconfig
- <!-- SERVER ROLE The name for grouping metrics from instances by server role. Default value: Single --><setting name="ApplicationInsights.Role" value="Single" patch:source="Sitecore.Cloud.ApplicationInsights.config"/>
- <!-- TELEMETRY TAGS Tags that are included in telemetry data to identify the metrics from an instance. --><setting name="ApplicationInsights.Tag" value="" patch:source="Sitecore.Cloud.ApplicationInsights.config"/>
- <!-- DEVELOPER MODE Enables developer mode in Application Insights TelemetryConfiguration. --><setting name="ApplicationInsights.DeveloperMode" value="false" patch:source="Sitecore.Cloud.ApplicationInsights.config"/>
- <pipelines><initialize><processor type="Sitecore.Cloud.ApplicationInsights.Logging.RemoveSitecoreTraceListeners, Sitecore.Cloud.ApplicationInsights" patch:source="Sitecore.Cloud.ApplicationInsights.config"/><processor type="Sitecore.Cloud.ApplicationInsights.TelemertyInitializers.InjectTelemertyInitializers, Sitecore.Cloud.ApplicationInsights" patch:source="Sitecore.Cloud.ApplicationInsights.config"/><processor type="Sitecore.Cloud.ApplicationInsights.TelemertyInitializers.AppInsightsInitializer, Sitecore.Cloud.ApplicationInsights" patch:source="Sitecore.Cloud.ApplicationInsights.config"/>
Log files
- App_Data/logs/xxxx/azure.log.2020xxxx.0xxxx5.txt