1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Add screen stack context to sentry

This commit is contained in:
Dean Herbert 2022-05-11 12:55:15 +09:00
parent c61d0ff80a
commit 843e13a471

View File

@ -56,6 +56,8 @@ using osu.Game.Updater;
using osu.Game.Users;
using osu.Game.Utils;
using osuTK.Graphics;
using Sentry;
using Logger = osu.Framework.Logging.Logger;
namespace osu.Game
{
@ -1197,6 +1199,15 @@ namespace osu.Game
private void screenChanged(IScreen current, IScreen newScreen)
{
SentrySdk.ConfigureScope(scope =>
{
scope.Contexts[@"screen stack"] = new
{
Current = newScreen.GetType().Name,
Previous = current.GetType().Name,
};
});
switch (newScreen)
{
case IntroScreen intro: