ApplicationInsights.config 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
  3. <TelemetryInitializers>
  4. <Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/>
  5. <Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
  6. <Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
  7. <Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/>
  8. <Add Type="Microsoft.ApplicationInsights.Web.WebTestTelemetryInitializer, Microsoft.AI.Web"/>
  9. <Add Type="Microsoft.ApplicationInsights.Web.SyntheticUserAgentTelemetryInitializer, Microsoft.AI.Web">
  10. <!-- Extended list of bots:
  11. search|spider|crawl|Bot|Monitor|BrowserMob|BingPreview|PagePeeker|WebThumb|URL2PNG|ZooShot|GomezA|Google SketchUp|Read Later|KTXN|KHTE|Keynote|Pingdom|AlwaysOn|zao|borg|oegp|silk|Xenu|zeal|NING|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|Java|JNLP|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|vortex|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|voyager|archiver|Icarus6j|mogimogi|Netvibes|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|wsr-agent|http client|Python-urllib|AppEngine-Google|semanticdiscovery|facebookexternalhit|web/snippet|Google-HTTP-Java-Client-->
  12. <Filters>search|spider|crawl|Bot|Monitor|AlwaysOn</Filters>
  13. </Add>
  14. <Add Type="Microsoft.ApplicationInsights.Web.ClientIpHeaderTelemetryInitializer, Microsoft.AI.Web"/>
  15. <Add Type="Microsoft.ApplicationInsights.Web.OperationNameTelemetryInitializer, Microsoft.AI.Web"/>
  16. <Add Type="Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer, Microsoft.AI.Web"/>
  17. <Add Type="Microsoft.ApplicationInsights.Web.UserTelemetryInitializer, Microsoft.AI.Web"/>
  18. <Add Type="Microsoft.ApplicationInsights.Web.AuthenticatedUserIdTelemetryInitializer, Microsoft.AI.Web"/>
  19. <Add Type="Microsoft.ApplicationInsights.Web.AccountIdTelemetryInitializer, Microsoft.AI.Web"/>
  20. <Add Type="Microsoft.ApplicationInsights.Web.SessionTelemetryInitializer, Microsoft.AI.Web"/>
  21. </TelemetryInitializers>
  22. <TelemetryModules>
  23. <Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector"/>
  24. <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
  25. <!--
  26. Use the following syntax here to collect additional performance counters:
  27. <Counters>
  28. <Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
  29. ...
  30. </Counters>
  31. PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
  32. NOTE: performance counters configuration will be lost upon NuGet upgrade.
  33. The following placeholders are supported as InstanceName:
  34. ??APP_WIN32_PROC?? - instance name of the application process for Win32 counters.
  35. ??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
  36. ??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
  37. -->
  38. </Add>
  39. <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
  40. <Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
  41. <Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
  42. <Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
  43. <Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web">
  44. <Handlers>
  45. <!--
  46. Add entries here to filter out additional handlers:
  47. NOTE: handler configuration will be lost upon NuGet upgrade.
  48. -->
  49. <Add>System.Web.Handlers.TransferRequestHandler</Add>
  50. <Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add>
  51. <Add>System.Web.StaticFileHandler</Add>
  52. <Add>System.Web.Handlers.AssemblyResourceLoader</Add>
  53. <Add>System.Web.Optimization.BundleHandler</Add>
  54. <Add>System.Web.Script.Services.ScriptHandlerFactory</Add>
  55. <Add>System.Web.Handlers.TraceHandler</Add>
  56. <Add>System.Web.Services.Discovery.DiscoveryRequestHandler</Add>
  57. <Add>System.Web.HttpDebugHandler</Add>
  58. </Handlers>
  59. </Add>
  60. <Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/>
  61. </TelemetryModules>
  62. <TelemetryProcessors>
  63. <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/>
  64. <Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
  65. <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
  66. </Add>
  67. </TelemetryProcessors>
  68. <TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/>
  69. <!--
  70. Learn more about Application Insights configuration with ApplicationInsights.config here:
  71. http://go.microsoft.com/fwlink/?LinkID=513840
  72. Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.
  73. --></ApplicationInsights>