private static void OnNextException(BBExceptionEvent bbException) { try { InsightsClient.TrackException((ExceptionTelemetry)bbException.ToTelemetry()); } catch (Exception ex) { InsightsClient.TrackException( (ExceptionTelemetry) new BBInternalEvent("Error senting the telemetry event through AppInsights", ex).ToTelemetry()); } }
public static void Publish(BBExceptionEvent exceptionEvent) { // GUARDS Exceptions.OnNext(exceptionEvent); }