We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dbf5e1 commit 06ab90cCopy full SHA for 06ab90c
SoundSwitch/Program.cs
@@ -64,10 +64,15 @@ private static void Main()
64
CacheDirPath = Path.Combine(ApplicationPath.Default, "Session")
65
};
66
sentryOptions.AddIntegration(new ContribSentrySdkIntegration(contribOptions));
67
- ContribSentrySdk.StartSession(user);
68
}
69
70
using var _ = SentrySdk.Init(sentryOptions);
+ //Needs to be started AFTER the init of the main SDK
71
+ //else the ContribSentrySdk isn't enabled and no tracking is done
72
+ if (AppConfigs.Configuration.Telemetry)
73
+ {
74
+ ContribSentrySdk.StartSession(user);
75
+ }
76
77
78
SentrySdk.ConfigureScope(scope => { scope.User = user; });
0 commit comments