feat(renderer): 悦码渲染器增加 sentry 做异常监听

This commit is contained in:
wangxuefeng
2025-03-20 20:09:49 +08:00
parent 22145b3893
commit 64b59a06a3
10 changed files with 408 additions and 1 deletions

View File

@@ -17,6 +17,15 @@ const app = createApp(App);
Sentry.init({
app,
dsn: 'https://5bcf1344794fea64fc5e5fe7da4821c1@o4508962650783744.ingest.de.sentry.io/4508962653143120',
integrations: [
// 异常路径回放
Sentry.replayIntegration(),
// 异常端信息追踪
Sentry.browserTracingIntegration(),
],
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});
// 批量注册组件

View File

@@ -0,0 +1,3 @@
export function test() {
console.log('test');
}

View File

@@ -0,0 +1 @@
export * from './alert';