processTroubleShootingHttp method

void processTroubleShootingHttp(
  1. String label,
  2. Response resp
)

Implementation

void processTroubleShootingHttp(String label, Response resp) {
  // get request
  Map<String, String> criticalJson = {};

  try {
    criticalJson = _createTSHttp(resp.request, resp);
    print(criticalJson);
  } on Exception catch (e) {
    Flagship.logger(Level.EXCEPTIONS, e.toString());
    return;
  }

  // Add Trio vid aid,uuid
  criticalJson.addEntries(_createTrioIds(null).entries);
  // Send trouble shooting report
  _sendTroubleShootingReport(
      TroubleshootingHit(visitorId, label, criticalJson));
}