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

문제 신고

ignore_transaction(파이썬 에이전트 API)

통사론

newrelic.agent.ignore_transaction(flag=True)

현재 트랜잭션을 무시합니다.

설명

이 호출은 현재 트랜잭션을 무시합니다. 에이전트는 트랜잭션의 데이터를 보고하지 않습니다.

WSGI 환경 사전에서 웹 트랜잭션을 무시할 수도 있습니다. 그렇게 하려면 WSGI 서버에서 WSGI 애플리케이션으로 전달한 WSGI 환경 사전의 특정 요청에 대해 newrelic.ignore_transaction 키를 설정합니다.

매개변수

매개변수

설명

flag

부울

선택 과목. 기본값은 True 입니다. 트랜잭션이 이미 무시된 경우 플래그를 False 로 설정하여 무시를 취소할 수 있습니다.

반환 값

없음.

트랜잭션 무시

UI에 표시하고 싶지 않은 트랜잭션을 무시하려면 앱 코드에서 트랜잭션이 생성되는 위치에서 다음을 실행합니다. 이 예에서는 API를 사용하여 Flask 경로를 무시하는 방법을 보여줍니다.

@app.route("/")
def process_results():
newrelic.agent.ignore_transaction(flag=True)
return 'hello world'
Copyright © 2024 New Relic Inc.

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