feat(renderer): 悦码渲染器增加 sentry 做异常监听
This commit is contained in:
@@ -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.
|
||||
});
|
||||
|
||||
// 批量注册组件
|
||||
|
||||
3
apps/renderer/src/utils/alert.ts
Normal file
3
apps/renderer/src/utils/alert.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function test() {
|
||||
console.log('test');
|
||||
}
|
||||
1
apps/renderer/src/utils/index.ts
Normal file
1
apps/renderer/src/utils/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './alert';
|
||||
Reference in New Issue
Block a user