mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 17:47:18 +08:00
Add sentry tags for operating system and processor count
These would usually be in the log header, but right now that's not conveyed. An example use case would be better understanding https://sentry.ppy.sh/organizations/ppy/issues/846/?project=2&query=is%3Aunresolved&sort=freq&statsPeriod=14d, where we currently don't know whether it is a desktop or mobile OS.
This commit is contained in:
parent
6f7c675dfe
commit
bc294b8157
@ -8,6 +8,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Logging;
|
||||
@ -160,6 +161,8 @@ namespace osu.Game.Utils
|
||||
};
|
||||
|
||||
scope.SetTag(@"ruleset", ruleset.ShortName);
|
||||
scope.SetTag(@"os", $"{RuntimeInfo.OS} ({Environment.OSVersion})");
|
||||
scope.SetTag(@"processor count", Environment.ProcessorCount.ToString());
|
||||
});
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user