mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
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:
parent
53096e214c
commit
27d8441098
1 changed files with 2 additions and 14 deletions
|
@ -1,9 +1,9 @@
|
||||||
import * as Sentry from '@sentry/ember';
|
|
||||||
import AuthConfiguration from 'ember-simple-auth/configuration';
|
import AuthConfiguration from 'ember-simple-auth/configuration';
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
import ShortcutsRoute from 'ghost-admin/mixins/shortcuts-route';
|
import ShortcutsRoute from 'ghost-admin/mixins/shortcuts-route';
|
||||||
import ctrlOrCmd from 'ghost-admin/utils/ctrl-or-cmd';
|
import ctrlOrCmd from 'ghost-admin/utils/ctrl-or-cmd';
|
||||||
import windowProxy from 'ghost-admin/utils/window-proxy';
|
import windowProxy from 'ghost-admin/utils/window-proxy';
|
||||||
|
import {InitSentryForEmber} from '@sentry/ember';
|
||||||
import {inject} from 'ghost-admin/decorators/inject';
|
import {inject} from 'ghost-admin/decorators/inject';
|
||||||
import {
|
import {
|
||||||
isAjaxError,
|
isAjaxError,
|
||||||
|
@ -161,7 +161,7 @@ export default Route.extend(ShortcutsRoute, {
|
||||||
// init Sentry here rather than app.js so that we can use API-supplied
|
// 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
|
// sentry_dsn and sentry_env rather than building it into release assets
|
||||||
if (this.config.sentry_dsn) {
|
if (this.config.sentry_dsn) {
|
||||||
Sentry.init({
|
InitSentryForEmber({
|
||||||
dsn: this.config.sentry_dsn,
|
dsn: this.config.sentry_dsn,
|
||||||
environment: this.config.sentry_env,
|
environment: this.config.sentry_env,
|
||||||
release: `ghost@${this.config.version}`,
|
release: `ghost@${this.config.version}`,
|
||||||
|
@ -171,18 +171,6 @@ export default Route.extend(ShortcutsRoute, {
|
||||||
event.tags.grammarly = !!document.querySelector('[data-gr-ext-installed]');
|
event.tags.grammarly = !!document.querySelector('[data-gr-ext-installed]');
|
||||||
return event;
|
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
|
// TransitionAborted errors surface from normal application behaviour
|
||||||
// - https://github.com/emberjs/ember.js/issues/12505
|
// - https://github.com/emberjs/ember.js/issues/12505
|
||||||
ignoreErrors: [/^TransitionAborted$/]
|
ignoreErrors: [/^TransitionAborted$/]
|
||||||
|
|
Loading…
Add table
Reference in a new issue