• 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_capture_params(PHP 에이전트 API)

통사론

newrelic_capture_params([bool $enable_flag])

URL 매개변수 캡처를 활성화하거나 비활성화합니다.

요구 사항

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

설명

URL 매개변수 캡처를 활성화하거나 비활성화합니다(URL에서 ? 뒤의 모든 항목). 이는 newrelic.capture_params 구성 파일 설정을 재정의합니다.

중요

URL에 민감한 정보를 직접 전달하는 경우 비활성화된 상태로 유지하십시오.

매개변수

매개변수

설명

$enable_flag

부울

선택 과목. 기본값은 true 입니다.

true 이거나 생략된 경우 URL 매개변수 캡처를 활성화합니다.

false 인 경우 URL 매개변수 캡처를 비활성화합니다.

URL 매개변수 캡처 활성화

function example() {
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
newrelic_capture_params();
}
//...
}

URL 매개변수 캡처 비활성화

function example() {
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
newrelic_capture_params(false);
}
//...
}
Copyright © 2024 New Relic Inc.

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