public function testIgnoreTransaction()
 {
     $handler = $this->getHandlerSpy('newrelic_ignore_transaction', array());
     $agent = new Newrelic(false, $handler);
     $this->assertNull($agent->ignoreTransaction());
 }
Beispiel #2
0
 /**
  * Do not generate metrics for this transaction. This is useful when you have transactions that are particularly
  * slow for known reasons and you do not want them always being reported as the transaction trace or skewing your
  * site averages.
  *
  * @return mixed 
  * @static 
  */
 public static function ignoreTransaction()
 {
     return \Intouch\Newrelic\Newrelic::ignoreTransaction();
 }