fix: migrate Sentry integration to SDK v8 API (#1769)

This commit is contained in:
Copilot
2025-11-07 15:20:57 +00:00
committed by GitHub
parent 4fe0763010
commit e424689ed9
4 changed files with 23057 additions and 49 deletions

23055
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -58,7 +58,6 @@
"@github/hotkey": "3.1.1",
"@intlify/unplugin-vue-i18n": "11.0.1",
"@kyvg/vue3-notification": "3.4.2",
"@sentry/tracing": "7.120.4",
"@sentry/vue": "10.23.0",
"@tiptap/core": "3.10.2",
"@tiptap/extension-code-block-lowlight": "3.10.2",

View File

@@ -40,9 +40,6 @@ importers:
'@kyvg/vue3-notification':
specifier: 3.4.2
version: 3.4.2(vue@3.5.23(typescript@5.9.3))
'@sentry/tracing':
specifier: 7.120.4
version: 7.120.4
'@sentry/vue':
specifier: 10.23.0
version: 10.23.0(pinia@3.0.4(typescript@5.9.3)(vue@3.5.23(typescript@5.9.3)))(vue@3.5.23(typescript@5.9.3))
@@ -1968,10 +1965,6 @@ packages:
resolution: {integrity: sha512-5yPD7jVO2JY8+JEHXep0Bf/ugp4rmxv5BkHIcSAHQsKSPhziFks2x+KP+6M8hhbF1WydqAaDYlGjrkL2yspHqA==}
engines: {node: '>=18'}
'@sentry-internal/tracing@7.120.4':
resolution: {integrity: sha512-Fz5+4XCg3akeoFK+K7g+d7HqGMjmnLoY2eJlpONJmaeT9pXY7yfUyXKZMmMajdE2LxxKJgQ2YKvSCaGVamTjHw==}
engines: {node: '>=8'}
'@sentry/browser@10.23.0':
resolution: {integrity: sha512-9hViLfYONxRJykOhJQ3ZHQ758t1wQIsxEC7mTsydbDm+m12LgbBtXbfgcypWHlom5Yvb+wg6W+31bpdGnATglw==}
engines: {node: '>=18'}
@@ -2026,22 +2019,6 @@ packages:
resolution: {integrity: sha512-4aZwu6VnSHWDplY5eFORcVymhfvS/P6BRfK81TPnG/ReELaeoykKjDwR+wC4lO7S0307Vib9JGpszjsEZw245g==}
engines: {node: '>=18'}
'@sentry/core@7.120.4':
resolution: {integrity: sha512-TXu3Q5kKiq8db9OXGkWyXUbIxMMuttB5vJ031yolOl5T/B69JRyAoKuojLBjRv1XX583gS1rSSoX8YXX7ATFGA==}
engines: {node: '>=8'}
'@sentry/tracing@7.120.4':
resolution: {integrity: sha512-cAtpLh23qW3hoqZJ6c36EvFki5NhFWUSK71ALHefqDXEocMlfDc9I+IGn3B/ola2D2TDEDamCy3x32vctKqOag==}
engines: {node: '>=8'}
'@sentry/types@7.120.4':
resolution: {integrity: sha512-cUq2hSSe6/qrU6oZsEP4InMI5VVdD86aypE+ENrQ6eZEVLTCYm1w6XhW1NvIu3UuWh7gZec4a9J7AFpYxki88Q==}
engines: {node: '>=8'}
'@sentry/utils@7.120.4':
resolution: {integrity: sha512-zCKpyDIWKHwtervNK2ZlaK8mMV7gVUijAgFeJStH+CU/imcdquizV3pFLlSQYRswG+Lbyd6CT/LGRh3IbtkCFw==}
engines: {node: '>=8'}
'@sentry/vue@10.23.0':
resolution: {integrity: sha512-xOBysMZnAUNovbw0feqNGunGL3BChULsm7mJCPm0lWmsuCAwLHFPdbKV1M7+6Tx4kCVn+5s8VDmnhWrj6pgZDg==}
engines: {node: '>=18'}
@@ -8777,12 +8754,6 @@ snapshots:
'@sentry-internal/browser-utils': 10.23.0
'@sentry/core': 10.23.0
'@sentry-internal/tracing@7.120.4':
dependencies:
'@sentry/core': 7.120.4
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/browser@10.23.0':
dependencies:
'@sentry-internal/browser-utils': 10.23.0
@@ -8833,21 +8804,6 @@ snapshots:
'@sentry/core@10.23.0': {}
'@sentry/core@7.120.4':
dependencies:
'@sentry/types': 7.120.4
'@sentry/utils': 7.120.4
'@sentry/tracing@7.120.4':
dependencies:
'@sentry-internal/tracing': 7.120.4
'@sentry/types@7.120.4': {}
'@sentry/utils@7.120.4':
dependencies:
'@sentry/types': 7.120.4
'@sentry/vue@10.23.0(pinia@3.0.4(typescript@5.9.3)(vue@3.5.23(typescript@5.9.3)))(vue@3.5.23(typescript@5.9.3))':
dependencies:
'@sentry/browser': 10.23.0

View File

@@ -5,7 +5,6 @@ import {AxiosError} from 'axios'
export default async function setupSentry(app: App, router: Router) {
const Sentry = await import('@sentry/vue')
const {Integrations} = await import('@sentry/tracing')
Sentry.init({
app,
@@ -13,9 +12,8 @@ export default async function setupSentry(app: App, router: Router) {
release: import.meta.env.VITE_PLUGIN_SENTRY_CONFIG.release,
dist: import.meta.env.VITE_PLUGIN_SENTRY_CONFIG.dist,
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
tracingOrigins: ['localhost', /^\//],
Sentry.browserTracingIntegration({
router,
}),
],
tracesSampleRate: 1.0,