Skip to content

Commit

Permalink
move monitor & exec wrapper to infra
Browse files Browse the repository at this point in the history
  • Loading branch information
erankor committed Dec 22, 2020
1 parent 0ee4bab commit 68d3c45
Show file tree
Hide file tree
Showing 59 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alpha/apps/kaltura/lib/cache/kApiCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require_once(dirname(__FILE__) . '/../request/kIpAddressUtils.php');
require_once(dirname(__FILE__) . '/../request/kGeoUtils.php');
require_once(dirname(__FILE__) . '/../kGeoCoderManager.php');
require_once(dirname(__FILE__) . '/../monitor/KalturaMonitorClient.php');
require_once(dirname(__FILE__) . '/../../../../../infra/monitor/KalturaMonitorClient.php');

/**
* @package server-infra
Expand Down
4 changes: 2 additions & 2 deletions alpha/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function checkCache()
}
}

require_once(dirname(__FILE__) . '/../apps/kaltura/lib/monitor/KalturaMonitorClient.php');
require_once(dirname(__FILE__) . '/../../infra/monitor/KalturaMonitorClient.php');
KalturaMonitorClient::monitorApiStart(true, 'extwidget.thumbnail', $renderer->partnerId);
header("X-Kaltura:cached-dispatcher-thumb");
$renderer->output();
Expand Down Expand Up @@ -238,8 +238,8 @@ function checkCache()
{
require_once(dirname(__FILE__) . '/../apps/kaltura/lib/renderers/kRendererDumpFile.php');
require_once(dirname(__FILE__) . '/../apps/kaltura/lib/renderers/kRendererString.php');
require_once(dirname(__FILE__) . '/../apps/kaltura/lib/monitor/KalturaMonitorClient.php');
require_once(dirname(__FILE__) . '/../apps/kaltura/lib/request/kIpAddressUtils.php');
require_once(dirname(__FILE__) . '/../../infra/monitor/KalturaMonitorClient.php');

$host = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST'];
$cacheKey = 'dumpFile-'.kIpAddressUtils::isInternalIp($_SERVER['REMOTE_ADDR']).'-'.$host.$uri;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/beacon/lib/model/kBeaconCacheLayerActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require_once (dirname(__FILE__) . '/../../../../plugins/queue/providers/rabbit_mq/lib/RabbitMQProvider.php');
require_once (dirname(__FILE__) . '/../../../../plugins/queue/providers/rabbit_mq/lib/MultiCentersRabbitMQProvider.php');

require_once (dirname(__FILE__) . '/../../../../alpha/apps/kaltura/lib/monitor/KalturaMonitorClient.php');
require_once (dirname(__FILE__) . '/../../../../infra/monitor/KalturaMonitorClient.php');


class kBeaconCacheLayerActions
Expand Down

0 comments on commit 68d3c45

Please sign in to comment.