• 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_insert_distributed_trace_headers

통사론

newrelic_insert_distributed_trace_headers (array $headers)

W3C 추적 컨텍스트 헤더 및 New Relic Distributed Tracing 헤더를 헤더의 아웃바운드 배열에 삽입합니다.

요구 사항

PHP 에이전트 버전 9.8 이상이 필요합니다.

설명

newrelic_insert_distributed_trace_headers 을 사용하여 아웃바운드 헤더 배열에 분산 추적 헤더를 수동으로 추가합니다.

분산 추적이 활성화되면 newrelic_insert_distributed_trace_headers 은 항상 W3C 추적 컨텍스트 헤더를 삽입합니다. 또한 기본적으로 New Relic Distributed Tracing 헤더를 삽입하지만 newrelic.distributed_tracing_exclude_newrelic_header INI 설정을 통해 비활성화할 수 있습니다.

매개변수

매개변수

설명

$headers

정렬

필수의. 아웃바운드 헤더의 (선택적으로 비어 있음) 배열입니다. 이 인수는 참조로 전달되므로 리터럴이 아닌 변수여야 합니다.

반환 값

true 헤더가 제공된 배열에 성공적으로 삽입된 경우 그렇지 않으면 반환 false

이 API 메서드를 언제 어떻게 사용하는지에 대한 예는 애플리케이션 및 서비스를 수동으로 계측 하는 설명서를 참조하십시오.

Copyright © 2024 New Relic Inc.

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