public void Initialize(Microsoft.ApplicationInsights.DataContracts.TelemetryContext context) { // Configure app version context.Component.Version = ApplicationInsightsConfigSettings.Version; // Set arbitrary tags context.Properties["tag"] = ApplicationInsightsConfigSettings.Tag; }
public void Initialize(Microsoft.ApplicationInsights.DataContracts.TelemetryContext context) { // Configure app version //context.Component.Version = typeof(SOS.RESTService.Global).Assembly.GetName().Version.ToString(); // Set arbitrary tags - Removed from build 13 to build 14 context.Properties["Environment"] = Config.AppInsightsEnvironment + "Service"; }
public void Initialize(Microsoft.ApplicationInsights.DataContracts.TelemetryContext context) { context.Component.Version = typeof(TelemetryConfiguration).Assembly.GetName().Version.ToString(); context.Properties.Add("EnvironmentMode", ConfigurationManager.AppSettings["EnvironmentMode"]); }
public void Initialize(Microsoft.ApplicationInsights.DataContracts.TelemetryContext context) { context.Properties["tags"] = WebConfigurationManager.AppSettings["tags"]; }