File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/browser/src/profiling/lifecycleMode Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ export class BrowserTraceLifecycleProfiler {
125
125
`[Profiling] Root span with ID ${ spanId } ended. Will continue profiling for as long as there are active root spans (currently: ${ rootSpanCount } ).` ,
126
126
) ;
127
127
if ( rootSpanCount === 0 ) {
128
- this . _collectCurrentChunk ( ) . catch ( ( ) => /* no catch */ { } ) ;
128
+ this . _collectCurrentChunk ( ) . catch ( e => {
129
+ DEBUG_BUILD && debug . error ( '[Profiling] Failed to collect current profile chunk on `spanEnd`:' , e ) ;
130
+ } ) ;
129
131
130
132
this . stop ( ) ;
131
133
}
@@ -196,7 +198,9 @@ export class BrowserTraceLifecycleProfiler {
196
198
this . _clearAllRootSpanTimeouts ( ) ;
197
199
198
200
// Collect whatever was currently recording
199
- this . _collectCurrentChunk ( ) . catch ( ( ) => /* no catch */ { } ) ;
201
+ this . _collectCurrentChunk ( ) . catch ( e => {
202
+ DEBUG_BUILD && debug . error ( '[Profiling] Failed to collect current profile chunk on `stop()`:' , e ) ;
203
+ } ) ;
200
204
}
201
205
202
206
/**
@@ -241,7 +245,9 @@ export class BrowserTraceLifecycleProfiler {
241
245
}
242
246
243
247
this . _chunkTimer = setTimeout ( ( ) => {
244
- this . _collectCurrentChunk ( ) . catch ( ( ) => /* no catch */ { } ) ;
248
+ this . _collectCurrentChunk ( ) . catch ( e => {
249
+ DEBUG_BUILD && debug . error ( '[Profiling] Failed to collect current profile chunk during periodic chunking:' , e ) ;
250
+ } ) ;
245
251
246
252
if ( this . _isRunning ) {
247
253
this . _startProfilerInstance ( ) ;
You can’t perform that action at this time.
0 commit comments