mirror of
https://github.com/ppy/osu
synced 2025-02-27 16:11:43 +00: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.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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user