diff --git a/wikia/releases/200905.1/includes/GlobalFunctions.php b/wikia/releases/200905.1/includes/GlobalFunctions.php index 2491614c1..3cfe0c4c6 100644 --- a/wikia/releases/200905.1/includes/GlobalFunctions.php +++ b/wikia/releases/200905.1/includes/GlobalFunctions.php @@ -861,17 +861,20 @@ function wfReportTime() { if( $wgShowHostnames) header( sprintf( "X-Served-By-Backend: %s", wfHostname() ) ); // WIKIA: send a message to the MQ - global $wgReportTimeToStomp; - if( $wgReportTimeToStomp ) { + global $wgReportTimeViaStomp; + if( $wgReportTimeViaStomp ) { global $wgStompServer, $wgStompUser, $wgStompPassword; $stomp = new Stomp( $wgStompServer ); $stomp->connect( $wgStompUser, $wgStompPassword ); + $stomp->sync = false; $stomp->send( 'wikia.apache.service_time.'.wfHostname(), - Wikia::json_encode( array( 'real' => $elapsed, 'cpu' => $elapsedcpu ) ), - array( 'exchange' => 'amq.topic', 'bytes_message' => 1 ), - false - ); - $stomp->disconnect(); + Wikia::json_encode( array( + 'real' => $elapsed, + 'cpu' => $elapsedcpu, + 'url' => 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], + ) ), + array( 'exchange' => 'amq.topic', 'bytes_message' => 1 ) + ); } return $wgShowHostnames