File tree Expand file tree Collapse file tree 3 files changed +220
-43
lines changed Expand file tree Collapse file tree 3 files changed +220
-43
lines changed Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/browser' ;
22import { addGlobalEventProcessor , SDK_VERSION , BrowserOptions } from '@sentry/browser' ;
33import environmentConfig from 'ember-get-config' ;
4-
4+ import { macroCondition , isDevelopingApp } from '@embroider/macros' ;
55import { next } from '@ember/runloop' ;
6- import { assert , warn , runInDebug } from '@ember/debug' ;
6+ import { assert , warn } from '@ember/debug' ;
77import Ember from 'ember' ;
88import { timestampWithMs } from '@sentry/utils' ;
99
@@ -22,7 +22,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
2222
2323 Sentry . init ( initConfig ) ;
2424
25- runInDebug ( ( ) => {
25+ if ( macroCondition ( isDevelopingApp ( ) ) ) {
2626 if ( config . ignoreEmberOnErrorWarning ) {
2727 return ;
2828 }
@@ -35,7 +35,7 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
3535 } ,
3636 ) ;
3737 } ) ;
38- } ) ;
38+ }
3939}
4040
4141export const getActiveTransaction = ( ) => {
Original file line number Diff line number Diff line change 3131 "pack" : " npm pack"
3232 },
3333 "dependencies" : {
34+ "@embroider/macros" : " >= 0.25.0" ,
3435 "@sentry/browser" : " 5.24.2" ,
3536 "@sentry/tracing" : " 5.24.2" ,
3637 "@sentry/types" : " 5.24.2" ,
You can’t perform that action at this time.
0 commit comments