「Unity/sentry/ユーザ名設定」の版間の差分
提供: 初心者エンジニアの簡易メモ
| 行1: | 行1: | ||
| + | ==ユーザ名を追加するサンプル== | ||
<pre> | <pre> | ||
using Sentry; | using Sentry; | ||
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" }
}
};
});
