Add tags for current screen and ruleset

This commit is contained in:
Dean Herbert 2022-05-16 15:50:15 +09:00
parent 8c9edee360
commit 5ec05a8653
2 changed files with 5 additions and 0 deletions

View File

@ -1207,6 +1207,8 @@ namespace osu.Game
Current = newScreen?.GetType().ReadableName(),
Previous = current?.GetType().ReadableName(),
};
scope.SetTag(@"screen", newScreen?.GetType().ReadableName() ?? @"none");
});
switch (newScreen)

View File

@ -145,6 +145,7 @@ namespace osu.Game.Utils
scope.Contexts[@"ruleset"] = new
{
ruleset.ShortName,
ruleset.Name,
ruleset.InstantiationInfo,
ruleset.OnlineID
@ -155,6 +156,8 @@ namespace osu.Game.Utils
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
Game = game.Clock.CurrentTime,
};
scope.SetTag(@"ruleset", ruleset.ShortName);
});
}
else