Beispiel #1
0
 public void TrackError(TelemetryError error)
 {
     foreach (var provider in providers)
     {
         provider.TrackError(error);
     }
 }
		public void TrackError (TelemetryError error)
		{
			var properties = new Dictionary<string, string>();
			var metrics = new Dictionary<string, double>();

			Enrich (properties, metrics);

			var exception = error.Exception;
			var telemetry = new ExceptionTelemetry (exception);

			foreach (var property in telemetryTranslator.Translate (properties)) {
				telemetry.Properties.Add (property.Key, property.Value);
			}

			foreach (DictionaryEntry dataItem in exception.Data) {
				telemetry.Properties.Add ((string)dataItem.Key, (string)dataItem.Value);
			}

			client.TrackException (telemetry);
		}
Beispiel #3
0
        public void TrackError(TelemetryError error)
        {
            var properties = new Dictionary <string, string>();
            var metrics    = new Dictionary <string, double>();

            Enrich(properties, metrics);

            var exception = error.Exception;
            var telemetry = new ExceptionTelemetry(exception);

            foreach (var property in telemetryTranslator.Translate(properties))
            {
                telemetry.Properties.Add(property.Key, property.Value);
            }

            foreach (DictionaryEntry dataItem in exception.Data)
            {
                telemetry.Properties.Add((string)dataItem.Key, (string)dataItem.Value);
            }

            client.TrackException(telemetry);
        }
Beispiel #4
0
 public void TrackError(TelemetryError error)
 {
 }
		public void TrackError (TelemetryError error)
		{
		}
Beispiel #6
0
 /// <summary>Client trapped a generic unhandled error.</summary>
 /// <param name="error">Error details.</param>
 /// <returns>true</returns>
 public bool Error([FromBody] TelemetryError error)
 {
     log.DebugFormat("{3} CLIENT ERROR: {0} // {1} // {2} - {4}", error.Error, error.Message, error.Location, User.Identity.Name, Request.Headers.UserAgent);
     return(true);
 }