mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 07:22:54 +08:00
Add global statistics context to sentry
This commit is contained in:
parent
f53d42d31f
commit
be09ec833e
@ -11,6 +11,7 @@ using System.Net;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Statistics;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Database;
|
||||
@ -127,6 +128,10 @@ namespace osu.Game.Utils
|
||||
};
|
||||
});
|
||||
|
||||
scope.Contexts[@"global statistics"] = GlobalStatistics.GetStatistics()
|
||||
.GroupBy(s => s.Group)
|
||||
.ToDictionary(g => g.Key, items => items.ToDictionary(i => i.Name, g => g.DisplayValue));
|
||||
|
||||
scope.Contexts[@"beatmap"] = new
|
||||
{
|
||||
Name = beatmap.ToString(),
|
||||
|
Loading…
Reference in New Issue
Block a user