In the out of the box configuration for Sitecore on Azure, application insights has been enabled by default. However, this configuration is optimally configured. In normal situations, it's very valuable to have insights in your infrastructure: what connections provide a lot of errors, latency or other issues. This blogpost explains on how to get these insights with for Sitecore.
It's possible to enable Application Insights in two different ways:
- Enable it buildtime, by adding the Application Insights SDK to the application
- Enable it runtime, by enabling an extension on the web application
these methods will enable you to monitor your application. Whenever this has been enabled, custom logging can be written. For the serverside logging, Sitecore already has replaced the log4net logger by the application insights logger, but Sitecore has omitted the clientside logging.
Enabling the application Map by updating the buildtime configuration
Luckily, Application Insights is enabled using the SDK by default for Sitecore, but as mentioned earlier, the configuration is not optimal. The insights you would like to get, is are the following:
but all that is provided, is the following information. A single application, which displays all requests, but there isn't any dependency information available.
This is due to the following configuration in the applicationInsights.config: