From 2354a783e6aa9a4807adc6198d45454cd9081d01 Mon Sep 17 00:00:00 2001 From: pa Date: Mon, 17 Nov 2025 13:08:42 +0900 Subject: [PATCH] add sentry span info --- src/plugin/sentry.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/plugin/sentry.js b/src/plugin/sentry.js index 999e53fc..444b5792 100644 --- a/src/plugin/sentry.js +++ b/src/plugin/sentry.js @@ -72,8 +72,16 @@ export async function initSentry(app) { beforeSendSpan(span) { span.data = { ...span.data, - // @ts-ignore - memory_usage: window.performance.memory.usedJSHeapSize + usedJSHeapSize: + // @ts-ignore + window.performance.memory.usedJSHeapSize / 1024 / 1024, + totalJSHeapSize: + // @ts-ignore + window.performance.memory.totalJSHeapSize / 1024 / 1024, + jsHeapSizeLimit: + // @ts-ignore + window.performance.memory.jsHeapSizeLimit / 1024 / 1024, + vrcxId: vrcxId }; return span; },