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

問題を作成する

DisableBrowserMonitoring (.NETエージェントAPI)

構文

NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring([boolean $override])

特定のページでのブラウザモニタリングスニペットの自動注入を無効にする。

要件

すべてのAgentバージョンに対応しています。

トランザクションの中で呼び出す必要があります

説明

この呼び出しを追加して、 特定のページのスクリプト。オプションのオーバーライドを追加して、手動と自動の両方の注入を無効にすることもできます。いずれの場合も、この API 呼び出しをブラウザを無効にするビューの上部にできるだけ近い位置に配置します。

ヒント

ブラウザ スクリプトをページにGetBrowserTimingHeader() 追加する を比較してください。

パラメーター

パラメータ

説明

$override

ブール値

オプション。trueの場合、ブラウザ スクリプトのすべての挿入が無効になります。このフラグは、手動注入と自動注入の両方に影響します。これにより、 GetBrowserTimingHeader()呼び出しもオーバーライドされます。

オートインジェクションの無効化

この例では、 スニペットの自動 インジェクションのみを無効にしています。

NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring();

オートマチック/マニュアルインジェクションの無効化

この例では、 スニペットの自動注入と手動注入の両方を無効にしています。

**```cs NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring(true);

export const _frontmatter = {"title":"DisableBrowserMonitoring (.NETエージェントAPI)","type":"apiDoc","shortDescription":"特定のページでのブラウザモニタリングスニペットの自動注入を無効にする。","tags":["Agents","NET agent","NET agent API"],"metaDescription":"New Relic .NET agent API call to disable browser monitoring on specific pages or views.","freshnessValidatedDate":"never","translationType":"machine"}
Copyright © 2024 New Relic株式会社。

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