修复 sentry 配置

This commit is contained in:
whyour
2023-12-06 16:35:35 +08:00
parent 6e0ee6f627
commit 20249119a0
4 changed files with 6 additions and 19 deletions
+2 -3
View File
@@ -1,13 +1,12 @@
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
import { loader } from '@monaco-editor/react';
export function init(version: string) {
// sentry监控 init
Sentry.init({
dsn: 'https://3406424fb1dc4813a62d39e844a9d0ac@o1098464.ingest.sentry.io/6122818',
dsn: 'https://49b9ad1a6201bfe027db296ab7c6d672@o1098464.ingest.sentry.io/6122818',
integrations: [
new Integrations.BrowserTracing({
new Sentry.BrowserTracing({
shouldCreateSpanForRequest(url) {
return !url.includes('/api/ws') && !url.includes('/api/static');
},