facebook twitter hatena line email

Unity/sentry/ユーザ名設定

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

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

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" }
        }
    };
});