Reverted "Enabled Sentry Replay within Admin"

refs https://ghost.slack.com/archives/C02G9E68C/p1689599266267649

- this reverts commit bb6deda10e
- we're seeing some weird errors when Admin boots otherwise
This commit is contained in:
Daniel Lockyer 2023-07-17 15:22:31 +02:00 committed by Daniel Lockyer
parent 636b1e67b2
commit 46422d7bae

View File

@ -1,9 +1,9 @@
import * as Sentry from '@sentry/ember';
import AuthConfiguration from 'ember-simple-auth/configuration';
import Route from '@ember/routing/route';
import ShortcutsRoute from 'ghost-admin/mixins/shortcuts-route';
import ctrlOrCmd from 'ghost-admin/utils/ctrl-or-cmd';
import windowProxy from 'ghost-admin/utils/window-proxy';
import {InitSentryForEmber} from '@sentry/ember';
import {inject} from 'ghost-admin/decorators/inject';
import {
isAjaxError,
@ -161,7 +161,7 @@ export default Route.extend(ShortcutsRoute, {
// init Sentry here rather than app.js so that we can use API-supplied
// sentry_dsn and sentry_env rather than building it into release assets
if (this.config.sentry_dsn) {
Sentry.init({
InitSentryForEmber({
dsn: this.config.sentry_dsn,
environment: this.config.sentry_env,
release: `ghost@${this.config.version}`,
@ -171,18 +171,6 @@ export default Route.extend(ShortcutsRoute, {
event.tags.grammarly = !!document.querySelector('[data-gr-ext-installed]');
return event;
},
// Enable collecting Replay events
integrations: [
new Sentry.Replay()
],
// Don't collect any Replays for general users
replaysSessionSampleRate: 0,
// Collect all Replays coming from errors
replaysOnErrorSampleRate: 1.0,
// TransitionAborted errors surface from normal application behaviour
// - https://github.com/emberjs/ember.js/issues/12505
ignoreErrors: [/^TransitionAborted$/]