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

問題を作成する

newrelic_set_user_id (PHP エージェント API)

構文

newrelic_set_user_id(string $user_id)

一意のユーザー ID を現在のトランザクションに関連付けます。

要件

エージェントのバージョン 10.12 以降。

説明

この API を使用すると、アプリケーションは現在のトランザクションに一意のユーザー ID を割り当てることができます。

これにより、ユーザーはエラー イベントの影響など、個々のエンド ユーザーに関する洞察を得ることができます。

パラメーター

パラメータ

説明

$user_id [string])

必要です。

現在のトランザクションに割り当てられる一意の値 (UUID など) である必要があります。

戻り値

この関数は、ユーザー ID が正常に追加された場合はtrueを返し、それ以外の場合はfalseを返します。

function example() {
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
$user_id = "YOUR UNIQUE USER ID";
newrelic_set_user_id($user_id);
}
}
Copyright © 2024 New Relic株式会社。

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