From 5ce416503fe471e5b24f7b4fb7b7dac2d230dbe0 Mon Sep 17 00:00:00 2001 From: Jeffrey Lembeck Date: Fri, 14 Jan 2022 13:20:48 -0800 Subject: [PATCH] chore(monitoring): delete dead newrelic code --- www/breakdown.inc | 5 ----- www/common.inc | 5 ----- www/common_lib.inc | 4 ---- www/devtools.inc.php | 11 ----------- www/ec2/ec2.inc.php | 12 ------------ www/footer.inc | 4 ---- www/head.inc | 2 -- www/object_detail.inc | 8 -------- www/runtest.php | 7 ------- www/templates/layouts/footer.inc | 4 ---- www/templates/layouts/head.inc | 2 -- www/testStatus.inc | 3 --- www/testlog.php | 7 ------- www/thumbnail.php | 9 --------- www/updateFeeds.php | 3 --- www/video/visualProgress.inc.php | 4 ---- www/work/getwork.php | 15 --------------- www/work/postprocess.php | 7 ------- www/work/workdone.php | 23 ----------------------- www/xmlResult.php | 9 --------- 20 files changed, 144 deletions(-) diff --git a/www/breakdown.inc b/www/breakdown.inc index 405768ed19..904a640720 100644 --- a/www/breakdown.inc +++ b/www/breakdown.inc @@ -5,11 +5,6 @@ require_once('object_detail.inc'); require_once('contentColors.inc'); -if(extension_loaded('newrelic')) { - newrelic_add_custom_tracer('getBreakdown'); - newrelic_add_custom_tracer('getBreakdownCombined'); -} - define('BREAKDOWN_CACHE_VERSION', 4); /** diff --git a/www/common.inc b/www/common.inc index a114edd652..838ada79b9 100644 --- a/www/common.inc +++ b/www/common.inc @@ -163,8 +163,6 @@ if (isset($_REQUEST['embed'])) { define('BARE_UI', true); define('NAV_NO_SHARE', true); $noanalytics = true; - if (extension_loaded('newrelic')) - @newrelic_disable_autorum(); } $is_ssl = isSslConnection(); $GLOBALS['cdnPath'] = ''; @@ -272,9 +270,6 @@ $median_metric = GetSetting('medianMetric') ? GetSetting('medianMetric') : 'load $testLabel = ''; $page_title = 'WebPageTest Test'; if (strlen($id)) { - if(extension_loaded('newrelic')) { - newrelic_add_custom_parameter ('testID', $id); - } if (isset($_REQUEST['rkey']) && @strlen($_REQUEST['rkey'])) { // We are serving a relay request, so munge the id accordingly. $id = trim(htmlspecialchars($_REQUEST['rkey'])) . ".$id"; diff --git a/www/common_lib.inc b/www/common_lib.inc index ccce3d8946..dfaebbf2ca 100644 --- a/www/common_lib.inc +++ b/www/common_lib.inc @@ -5,10 +5,6 @@ require_once(__DIR__ . '/archive.inc'); require_once(__DIR__ . '/util.inc'); -if(extension_loaded('newrelic')) { - newrelic_add_custom_tracer('RestoreTest'); -} - define('VIDEO_CODE_VERSION', 20); require_once(__DIR__ . '/logging.inc'); diff --git a/www/devtools.inc.php b/www/devtools.inc.php index 5bae76ee69..7867ef4c3f 100644 --- a/www/devtools.inc.php +++ b/www/devtools.inc.php @@ -5,17 +5,6 @@ $DevToolsCacheVersion = '1.7'; require_once __DIR__ . '/include/TestPaths.php'; -if(extension_loaded('newrelic')) { - newrelic_add_custom_tracer('GetTimeline'); - newrelic_add_custom_tracer('GetDevToolsRequests'); - newrelic_add_custom_tracer('GetDevToolsEventsForStep'); - newrelic_add_custom_tracer('DevToolsGetConsoleLog'); - newrelic_add_custom_tracer('DevToolsGetCPUSlicesForStep'); - newrelic_add_custom_tracer('GetDevToolsCPUTime'); - newrelic_add_custom_tracer('ParseDevToolsEvents'); - newrelic_add_custom_tracer('DevToolsMatchEvent'); -} - /** * Load the timeline data for the given test run (from a timeline file or a raw dev tools dump) * diff --git a/www/ec2/ec2.inc.php b/www/ec2/ec2.inc.php index 1c93be1db1..d70048dfbb 100644 --- a/www/ec2/ec2.inc.php +++ b/www/ec2/ec2.inc.php @@ -5,18 +5,6 @@ require_once('./common_lib.inc'); require_once('./lib/aws/aws-autoloader.php'); -if(extension_loaded('newrelic')) { - newrelic_add_custom_tracer('EC2_StartInstanceIfNeeded'); - newrelic_add_custom_tracer('EC2_StartInstance'); - newrelic_add_custom_tracer('EC2_TerminateIdleInstances'); - newrelic_add_custom_tracer('EC2_GetRunningInstances'); - newrelic_add_custom_tracer('EC2_SendInstancesOffline'); - newrelic_add_custom_tracer('EC2_StartNeededInstances'); - newrelic_add_custom_tracer('EC2_TerminateInstance'); - newrelic_add_custom_tracer('EC2_LaunchInstance'); -} - - /** * Tests are pending for the given location, start instances as necessary * diff --git a/www/footer.inc b/www/footer.inc index df94abede9..33ddaf9350 100644 --- a/www/footer.inc +++ b/www/footer.inc @@ -51,9 +51,5 @@ include('./settings/customfooter.inc.php'); } ?> -
diff --git a/www/head.inc b/www/head.inc index 97ed4df177..e11e932152 100644 --- a/www/head.inc +++ b/www/head.inc @@ -46,8 +46,6 @@ if( strlen($page_description) ) } -
diff --git a/www/templates/layouts/head.inc b/www/templates/layouts/head.inc index 11653e347c..3f2185b8d0 100644 --- a/www/templates/layouts/head.inc +++ b/www/templates/layouts/head.inc @@ -46,8 +46,6 @@ if( strlen($page_description) ) }