studiokit-scaffolding-js 4.7.1 → 4.8.0
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/lib/startup.js
CHANGED
|
@@ -84,14 +84,17 @@ var startup = function (appConfig, endpointMappings) {
|
|
|
84
84
|
// do not track console logs when running in development mode (locally)
|
|
85
85
|
return breadcrumb.category === 'console' && appConfig.NODE_ENV !== 'production' ? null : breadcrumb;
|
|
86
86
|
},
|
|
87
|
-
// enable performance tracing
|
|
87
|
+
// enable performance tracing and session replays
|
|
88
88
|
integrations: [
|
|
89
89
|
new tracing_1.Integrations.BrowserTracing({
|
|
90
90
|
routingInstrumentation: Sentry.reactRouterV5Instrumentation(history)
|
|
91
|
-
})
|
|
91
|
+
}),
|
|
92
|
+
new Sentry.Replay()
|
|
92
93
|
],
|
|
93
|
-
// set
|
|
94
|
-
tracesSampleRate: appConfig.SENTRY_TRACES_SAMPLE_RATE
|
|
94
|
+
// set sample rates for performance tracing and session replays
|
|
95
|
+
tracesSampleRate: appConfig.SENTRY_TRACES_SAMPLE_RATE,
|
|
96
|
+
replaysSessionSampleRate: appConfig.SENTRY_REPLAYS_SESSION_SAMPLE_RATE,
|
|
97
|
+
replaysOnErrorSampleRate: appConfig.SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
100
|
// Unhandled Errors
|
|
@@ -23,6 +23,8 @@ export interface AppConfiguration {
|
|
|
23
23
|
GOOGLE_ANALYTICS_TRACKING_ID?: string;
|
|
24
24
|
SENTRY_DSN?: string;
|
|
25
25
|
SENTRY_TRACES_SAMPLE_RATE?: number;
|
|
26
|
+
SENTRY_REPLAYS_SESSION_SAMPLE_RATE?: number;
|
|
27
|
+
SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE?: number;
|
|
26
28
|
APP_INSIGHTS_KEY?: string;
|
|
27
29
|
CLIENT_ID: string;
|
|
28
30
|
CLIENT_SECRET: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"resolutions": {
|
|
88
|
-
"@sentry/browser": "^
|
|
88
|
+
"@sentry/browser": "^7.38.0",
|
|
89
89
|
"@types/react": "^17.0.0",
|
|
90
90
|
"@types/react-router": "^5.1.11",
|
|
91
91
|
"kind-of": "^6.0.3",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"@material-ui/icons": "^4.11.2",
|
|
100
100
|
"@microsoft/applicationinsights-web": "^2.5.11",
|
|
101
101
|
"@redux-saga/types": "^1.1.0",
|
|
102
|
-
"@sentry/react": "^
|
|
103
|
-
"@sentry/tracing": "^
|
|
102
|
+
"@sentry/react": "^7.38.0",
|
|
103
|
+
"@sentry/tracing": "^7.38.0",
|
|
104
104
|
"@types/history": "^4.7.8",
|
|
105
105
|
"@types/lodash": "^4.14.168",
|
|
106
106
|
"@types/pluralize": "^0.0.29",
|