「Unity/sentry/ユーザ名設定」の版間の差分
提供: 初心者エンジニアの簡易メモ
| (同じ利用者による、間の2版が非表示) | |||
| 行1: | 行1: | ||
| + | ==ユーザ名を追加するサンプル== | ||
<pre> | <pre> | ||
using Sentry; | using Sentry; | ||
| 行6: | 行7: | ||
{ | { | ||
Username = "name1", | Username = "name1", | ||
| − | Id = | + | 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" }
}
};
});
