diff --git a/src/NuGetGallery/ApplicationInsights.config b/src/NuGetGallery/ApplicationInsights.config index 1c5d739123..cfcd55c45d 100644 --- a/src/NuGetGallery/ApplicationInsights.config +++ b/src/NuGetGallery/ApplicationInsights.config @@ -6,9 +6,6 @@ Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file. --> - <TelemetryProcessors> - <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/> - </TelemetryProcessors> <TelemetryInitializers> <Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/> <Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/> @@ -50,6 +47,36 @@ --> </Add> <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/> + <Add Type="Microsoft.ApplicationInsights.WindowsServer.AppServicesHeartbeatTelemetryModule, Microsoft.AI.WindowsServer"/> + <Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureInstanceMetadataTelemetryModule, Microsoft.AI.WindowsServer"> + <!-- + Remove individual fields collected here by adding them to the ApplicationInsighs.HeartbeatProvider + with the following syntax: + + <Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights"> + <ExcludedHeartbeatProperties> + <Add>osType</Add> + <Add>location</Add> + <Add>name</Add> + <Add>offer</Add> + <Add>platformFaultDomain</Add> + <Add>platformUpdateDomain</Add> + <Add>publisher</Add> + <Add>sku</Add> + <Add>version</Add> + <Add>vmId</Add> + <Add>vmSize</Add> + <Add>subscriptionId</Add> + <Add>resourceGroupName</Add> + <Add>placementGroupId</Add> + <Add>tags</Add> + <Add>vmScaleSetName</Add> + </ExcludedHeartbeatProperties> + </Add> + + NOTE: exclusions will be lost upon upgrade. + --> + </Add> <Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/> <Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/> <Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer"/> @@ -60,7 +87,6 @@ NOTE: handler configuration will be lost upon NuGet upgrade. --> - <Add>System.Web.Handlers.TransferRequestHandler</Add> <Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add> <Add>System.Web.StaticFileHandler</Add> <Add>System.Web.Handlers.AssemblyResourceLoader</Add> @@ -72,11 +98,22 @@ </Handlers> </Add> <Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/> + <Add Type="Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule, Microsoft.AI.Web"/> </TelemetryModules> - <TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/> -<!-- + <ApplicationIdProvider Type="Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ApplicationInsightsApplicationIdProvider, Microsoft.ApplicationInsights"/> + <TelemetrySinks> + <Add Name="default"> + <TelemetryProcessors> + <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/> + <Add Type="Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor, Microsoft.ApplicationInsights"/> + </TelemetryProcessors> + <TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/> + </Add> + </TelemetrySinks> + <!-- Learn more about Application Insights configuration with ApplicationInsights.config here: http://go.microsoft.com/fwlink/?LinkID=513840 Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file. - --></ApplicationInsights> \ No newline at end of file + --> +</ApplicationInsights> \ No newline at end of file diff --git a/src/NuGetGallery/Web.config b/src/NuGetGallery/Web.config index 2aa7136974..2382397457 100644 --- a/src/NuGetGallery/Web.config +++ b/src/NuGetGallery/Web.config @@ -373,6 +373,8 @@ <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah, Version=1.2.14706.0, Culture=neutral, PublicKeyToken=57eac04b2e0f138e, processorArchitecture=MSIL" preCondition="managedHandler"/> <add name="AsyncFileUpload" type="NuGetGallery.AsyncFileUpload.AsyncFileUploadModule, NuGetGallery.Services" preCondition="managedHandler"/> <remove name="RoleManager"/> + <remove name="TelemetryCorrelationHttpModule" /> + <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" /> <remove name="ApplicationInsightsWebTracking"/> <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/> </modules>