mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
add sentry span info
This commit is contained in:
+10
-2
@@ -72,8 +72,16 @@ export async function initSentry(app) {
|
|||||||
beforeSendSpan(span) {
|
beforeSendSpan(span) {
|
||||||
span.data = {
|
span.data = {
|
||||||
...span.data,
|
...span.data,
|
||||||
// @ts-ignore
|
usedJSHeapSize:
|
||||||
memory_usage: window.performance.memory.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;
|
return span;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user