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