public void PopulateWithCommonConfiguration(TelemetryConfiguration configuration) { // DiagnosticsTelemetryModule is internal and can't be added but it's not needed since it only helps debugging. var telemetryModules = configuration.TelemetryModules; telemetryModules.Add(new RemoteDependencyModule()); telemetryModules.Add(new PerformanceCollectorModule()); var telemetryInitializers = configuration.TelemetryInitializers; telemetryInitializers.Add(new WebOperationIdTelemetryInitializer()); telemetryInitializers.Add(new ShellNameTelemetryInitializer()); _telemetryConfigurationEventHandler.ConfigurationLoaded(configuration); }
public void PopulateWithCommonConfiguration(TelemetryConfiguration configuration) { var telemetryInitializers = configuration.TelemetryInitializers; telemetryInitializers.Add(new ContextPopulatingTelemetryInitializer()); telemetryInitializers.Add(new ShellNameTelemetryInitializer()); telemetryInitializers.Add(new WebOperationIdTelemetryInitializer()); configuration.TelemetryProcessorChainBuilder.Use(next => new DispatchingQuickPulseTelemetryProcessor( next, _appWideQuickPulseTelemetryProcessorAccessor.GetAppWideQuickPulseTelemetryProcessor())); configuration.TelemetryProcessorChainBuilder.Build(); _telemetryConfigurationEventHandler.ConfigurationLoaded(configuration); }