fix sentry reporting

This commit is contained in:
pa
2026-01-08 15:21:56 +09:00
committed by Natsumi
parent a1fc383dac
commit 5162f916a7
2 changed files with 4 additions and 2 deletions

View File

@@ -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(