• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

newrelic_end_of_transaction(PHP 에이전트 API)

통사론

newrelic_end_of_transaction()

현재 트랜잭션의 타이밍을 중지하되 계속 계측하십시오.

요구 사항

모든 에이전트 버전과 호환됩니다.

설명

웹 트랜잭션 타이밍을 즉시 중지하십시오. 페이지가 앱 코드로 완료되고 데이터를 스트리밍하려고 할 때(파일 다운로드, 오디오 또는 비디오 스트리밍 등) 스트리밍 시간을 트랜잭션 런타임의 일부로 계산하지 않으려는 경우에 유용합니다. 에이전트는 트랜잭션이 끝날 때 데몬에 데이터를 보냅니다.

이것은 작업을 완료하는 데 걸리는 시간이 애플리케이션의 범위를 완전히 벗어날 때 특히 관련이 있습니다. 예를 들어 연결 속도가 매우 느린 사용자는 작은 파일이라도 다운로드하는 데 매우 오랜 시간이 걸릴 수 있으며 다운로드 시간이 실제 트랜잭션 시간을 왜곡하는 것을 원하지 않을 것입니다.

계측을 완전히 종료하는 newrelic_end_transaction() 를 비교하십시오.

매개변수

이 호출은 매개변수를 허용하지 않습니다.

스트리밍 데이터 후 타이밍 중지 [#streaming example]

function example() {
// computational logic
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
newrelic_end_of_transaction(); // Used to stop recording the transaction after computing for the transaction is complete, typically when streaming data
}
//streaming data
}
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.