tweak sentry config

This commit is contained in:
pa
2025-10-25 22:25:10 +09:00
committed by Natsumi
parent 933252d0e1
commit 7a1780f0a2

View File

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