File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { DEBUG_BUILD } from '../debug-build' ;
2
2
import { addGlobalErrorInstrumentationHandler } from '../instrument/globalError' ;
3
3
import { addGlobalUnhandledRejectionInstrumentationHandler } from '../instrument/globalUnhandledRejection' ;
4
- import { logger } from '../utils/logger' ;
4
+ import { debug } from '../utils/logger' ;
5
5
import { getActiveSpan , getRootSpan } from '../utils/spanUtils' ;
6
6
import { SPAN_STATUS_ERROR } from './spanstatus' ;
7
7
@@ -28,7 +28,7 @@ export function registerSpanErrorInstrumentation(): void {
28
28
const rootSpan = activeSpan && getRootSpan ( activeSpan ) ;
29
29
if ( rootSpan ) {
30
30
const message = 'internal_error' ;
31
- DEBUG_BUILD && logger . log ( `[Tracing] Root span: ${ message } -> Global error occurred` ) ;
31
+ DEBUG_BUILD && debug . log ( `[Tracing] Root span: ${ message } -> Global error occurred` ) ;
32
32
rootSpan . setStatus ( { code : SPAN_STATUS_ERROR , message } ) ;
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments