@nitra/vite-boot 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sentry.js +9 -4
package/package.json
CHANGED
package/src/sentry.js
CHANGED
|
@@ -4,21 +4,26 @@ import { Integrations } from '@sentry/tracing'
|
|
|
4
4
|
/**
|
|
5
5
|
* Ініціалізація Sentry
|
|
6
6
|
*/
|
|
7
|
-
export const bootSentry = (app, router) => {
|
|
7
|
+
export const bootSentry = (app, router, tracing = 0) => {
|
|
8
8
|
const options = {
|
|
9
9
|
app,
|
|
10
10
|
dsn: import.meta.env.VITE_SENTRY,
|
|
11
11
|
release: __GITHUB_SHA__,
|
|
12
12
|
ignoreErrors: ['ResizeObserver loop limit exceeded'],
|
|
13
|
-
integrations: [
|
|
13
|
+
integrations: []
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (tracing) {
|
|
17
|
+
options.integrations.push(
|
|
14
18
|
new Integrations.BrowserTracing({
|
|
15
19
|
routingInstrumentation: Sentry.vueRouterInstrumentation(router)
|
|
16
20
|
})
|
|
17
|
-
|
|
21
|
+
)
|
|
22
|
+
|
|
18
23
|
// Set tracesSampleRate to 1.0 to capture 100%
|
|
19
24
|
// of transactions for performance monitoring.
|
|
20
25
|
// We recommend adjusting this value in production
|
|
21
|
-
tracesSampleRate
|
|
26
|
+
options.tracesSampleRate = tracing
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
// Якщо публікація з різних гілок
|