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

問題を作成する

IAgent

構文

public interface IAgent

現在実行中のトランザクションなど、エージェントのアーティファクトとメソッドへのアクセスを提供します。

要件

Agentバージョン8.9以上。

すべてのアプリタイプに対応しています。

説明

現在実行中のトランザクションなど、エージェントのアーティファクトとメソッドへのアクセスを提供します。IAgentへの参照を取得するには、 GetAgentを使用します。

プロパティ

名前

説明

CurrentTransaction

ITransaction インターフェースを介して、現在実行中のトランザクションへのアクセスを提供するプロパティです。 トランザクションの中で呼び出されなければなりません

カレントスパン

ISpan インターフェースを介して、現在実行中のスパンへのアクセスを提供するプロパティ。

IAgent agent = NewRelic.Api.Agent.NewRelic.GetAgent();
ITransaction transaction = agent.CurrentTransaction;
Copyright © 2024 New Relic株式会社。

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