mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
fix sentry reporting
This commit is contained in:
@@ -109,6 +109,7 @@ export function startRendererMemoryThresholdReport(
|
||||
lastSent = now;
|
||||
|
||||
const trail = getPiniaActionTrail();
|
||||
const trailText = JSON.stringify(trail);
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setLevel('warning');
|
||||
scope.setTag('reason', 'high-js-heap');
|
||||
@@ -118,7 +119,7 @@ export function startRendererMemoryThresholdReport(
|
||||
ratio
|
||||
});
|
||||
scope.setContext('pinia_actions', {
|
||||
trail,
|
||||
trailText,
|
||||
count: trail.length
|
||||
});
|
||||
Sentry.captureMessage(
|
||||
|
||||
@@ -543,11 +543,12 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
}
|
||||
return ts.isAfter(cutoff) || ts.isSame(cutoff);
|
||||
});
|
||||
const trailText = JSON.stringify(trail);
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setLevel('fatal');
|
||||
scope.setTag('reason', 'crash-recovery');
|
||||
scope.setContext('pinia_actions', {
|
||||
trail,
|
||||
trailText,
|
||||
count: trail.length
|
||||
});
|
||||
Sentry.captureMessage(
|
||||
|
||||
Reference in New Issue
Block a user