0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added Sentry Session Replay for in Ghost Admin (#20255)

refs
https://linear.app/tryghost/issue/SLO-128/enable-sentry-replay-in-admin-adminx-editor

- this option lets us replay a session in Sentry when an error happens
This commit is contained in:
Sag 2024-05-27 14:59:43 +02:00 committed by GitHub
parent 6ff08c5c14
commit ed0a76e985
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,12 @@ export default Route.extend(ShortcutsRoute, {
// ResizeObserver loop errors occur often from extensions and
// embedded content, generally harmless and not useful to report
/^ResizeObserver loop completed with undelivered notifications/
]
],
// Session Replay on errors
// Docs: https://docs.sentry.io/platforms/javascript/session-replay
replaysOnErrorSampleRate: 1.0
};
if (this.config.sentry_env === 'development') {
sentryConfig.integrations = [new Debug()];