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

문제 신고

.NET 속성의 예

다음은 New Relic .NET 에이전트에서 속성을 사용하는 예입니다.

모든 속성 비활성화

이 예에서는 속성이 비활성화되어 있습니다. includeexclude 목록은 무시되고 모든 속성이 필터링됩니다.

구성:

<attributes enabled="false" />

입력 키:

foo, bar, request.parameters.foo, request.parameters.bar

대상에 대한 출력:

transaction_tracer: none
error_collector: none
transaction_events: none
browser_monitoring: none

특정 목적지 선택

이 예에서:

  • 트랜잭션 추적에 대해 특성이 비활성화됩니다. includeexclude 목록은 무시되고 이 대상에 대한 모든 속성이 필터링됩니다.

  • 다음에 대한 속성이 비활성화되었습니다.

    기본적으로.

  • 요청 매개변수(접두사 request.parameters. )는 모든 대상에 대해 기본적으로 해제되어 있습니다.

결과적으로 추적된 오류 및 트랜잭션 이벤트에서는 bar 만 전송됩니다.

구성:

<attributes enabled="true">
<exclude>foo</exclude>
</attributes>
<transactionTracer>
<attributes enabled="false" />
</transactionTracer>

입력 키:

foo, bar, request.parameters.foo, request.parameters.bar

대상에 대한 출력:

transaction_tracer: none
error_collector: bar
transaction_events: bar
browser_monitoring: none

값 및 대상 선택

이 예에서는 특정 출력 대상에 대해 특정 입력 키가 선택되고 다른 대상에서는 제외됩니다.

  • food.fruit.banana 키는 트랜잭션 추적에서만 제외됩니다.
  • foodfood.bread 키는 모든 대상에서 제외됩니다.

구성:

<attributes enabled="true">
<exclude>food*</exclude>
<include>food.fruit.*</include>
</attributes>
<transactionTracer>
<attributes enabled="true">
<exclude>food.fruit.banana</exclude>
</attributes>
</transactionTracer>

입력 키:

food, food.bread, food.fruit.banana, food.fruit.apple

대상에 대한 출력:

transaction_tracer: food.fruit.apple
error_collector: food.fruit.banana, food.fruit.apple
transaction_events: food.fruit.banana, food.fruit.apple
browser_monitoring: food.fruit.banana, food.fruit.apple

레거시 서버 측 속성 동작 에뮬레이션

이 예에서 에이전트는 요청 매개변수를 수집하고 이를 트랜잭션 추적 프로그램 및 오류 수집기 대상에 기록합니다. 이는 Capture attributes 또는 Capture parameters 옵션에 대한 레거시 서버 측 구성 설정을 활성화하는 것을 에뮬레이트합니다. .NET 에이전트 구성 파일에서 다음 <attributes> 요소를 사용자 지정합니다.

<transactionTracer>
<attributes>
<include>request.parameters*</include>
</attributes>
</transactionTracer>
<errorCollector>
<attributes>
<include>request.parameters*</include>
</attributes>
</errorCollector>
Copyright © 2024 New Relic Inc.

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