facebook twitter hatena line email

「Unity/sentry/ユーザ名設定」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「<pre> SentrySdk.ConfigureScope(scope => { scope.User = new Sentry.User { Username = "name1", Id = 1234, Other = { { "a...」)
 
 
(同じ利用者による、間の3版が非表示)
行1: 行1:
 +
==ユーザ名を追加するサンプル==
 
<pre>
 
<pre>
 +
using Sentry;
 
SentrySdk.ConfigureScope(scope =>
 
SentrySdk.ConfigureScope(scope =>
 
{
 
{
行5: 行7:
 
     {
 
     {
 
         Username = "name1",
 
         Username = "name1",
         Id = 1234,
+
         Id = "A1234",
 +
        Email = "hoge@example.com",
 +
        Segment = "seg1",
 +
        IpAddress = "192.168.0.1",
 
         Other =
 
         Other =
 
         {
 
         {
             { "age", 20 }
+
             { "age", "20" }
 
         }
 
         }
 
     };
 
     };
 
});
 
});
 
</pre>
 
</pre>

2023年11月14日 (火) 11:14時点における最新版

ユーザ名を追加するサンプル

using Sentry;
SentrySdk.ConfigureScope(scope =>
{
    scope.User = new Sentry.User
    {
        Username = "name1",
        Id = "A1234",
        Email = "hoge@example.com",
        Segment = "seg1",
        IpAddress = "192.168.0.1",
        Other =
        {
            { "age", "20" }
        }
    };
});