diff --git a/src/plugin/sentry.js b/src/plugin/sentry.js index a715adcb..5e42e0f3 100644 --- a/src/plugin/sentry.js +++ b/src/plugin/sentry.js @@ -58,12 +58,21 @@ export async function initSentry(app) { } return event; }, + beforeSendSpan(span) { + span.data = { + ...span.data, + // @ts-ignore + memory_usage: window.performance.memory.usedJSHeapSize + }; + return span; + }, integrations: [ Sentry.replayIntegration({ maskAllText: true, blockAllMedia: true }), Sentry.browserTracingIntegration({ router }), + Sentry.browserProfilingIntegration(), Sentry.vueIntegration({ tracingOptions: { trackComponents: true