Esempio n. 1
0
 public static function initApiMonitor($cached, $action, $partnerId, $clientTag = null)
 {
     if (is_null(self::$stream)) {
         self::init();
     }
     if (!self::$stream) {
         return;
     }
     self::$apiStartTime = microtime(true);
     self::$basicEventInfo = array(self::FIELD_SERVER => infraRequestUtils::getHostname(), self::FIELD_IP_ADDRESS => infraRequestUtils::getRemoteAddress(), self::FIELD_PARTNER_ID => $partnerId, self::FIELD_ACTION => $action, self::FIELD_CLIENT_TAG => $clientTag);
     if (!$cached) {
         require_once __DIR__ . '/../../../../../infra/log/UniqueId.php';
         self::$basicEventInfo[self::FIELD_UNIQUE_ID] = UniqueId::get();
     }
 }