/** * {@inheritdoc} */ public function endOfTransaction() { if (!$this->extensionLoaded()) { return $this; } newrelic_end_of_transaction(); return $this; }
/** * Stop recording the current transaction. The metrics gathered are send * to the daemon when the PHP engine determines the script is done and is * shutting down. Useful with file downloads, streaming, etc. * * Added in New Relig Agent 3.0. * * @link https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api#api-eot */ public function endOfTransaction() { if ($this->isLoaded()) { newrelic_end_of_transaction(); } }
/** * Stop recording the web transaction immediately. Usually used when a page is done with all computation and is * about to stream data (file download, audio or video streaming etc) and you don't want the time taken to stream to * be counted as part of the transaction. This is especially relevant when the time taken to complete the operation * is completely outside the bounds of your application. For example, a user on a very slow connection may take a * very long time to download even small files, and you wouldn't want that download time to skew the real * transaction time. * * @return $this */ public function markEndOfTransaction() { if ($this->active) { newrelic_end_of_transaction(); } return $this; }
public function stopTransaction($dropData = false) { return newrelic_end_of_transaction($dropData); }
/** * Stop recording the web transaction immediately. Useful when page is done * computing and is about to stream data (file download, audio, video). */ public function endOfTransaction() { if ($this->skip()) { return; } newrelic_end_of_transaction(); }