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

문제 신고

current_trace_id(Python 에이전트 API)

통사론

newrelic.agent.current_trace_id()

현재 프로세서의 트레이스 ID를 반환하거나, 프로세서가 없는 경우 None 반환합니다.

설명

현재 프로세서 의 트레이스 ID를 검색하려면 current_trace_id 사용하세요.

반환 값

현재 프로세서의 트레이스 ID를 반환합니다. 활성 트랜잭션이 없으면 None 반환합니다.

현재 트레이스 ID 가져오기

import newrelic.agent
@newrelic.agent.background_task()
def main():
trace_id = newrelic.agent.current_trace_id()
Copyright © 2024 New Relic Inc.

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