mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add global statistics context to sentry
This commit is contained in:
@ -11,6 +11,7 @@ using System.Net;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
|
using osu.Framework.Statistics;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Database;
|
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
|
scope.Contexts[@"beatmap"] = new
|
||||||
{
|
{
|
||||||
Name = beatmap.ToString(),
|
Name = beatmap.ToString(),
|
||||||
|
Reference in New Issue
Block a user