mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
Add screen stack context to sentry
This commit is contained in:
parent
c61d0ff80a
commit
843e13a471
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user