@@ -13,7 +13,7 @@ import type {
13
13
TransactionEvent ,
14
14
TransactionSource ,
15
15
} from '@sentry/types' ;
16
- import { consoleSandbox , dropUndefinedKeys , logger , timestampInSeconds , uuid4 } from '@sentry/utils' ;
16
+ import { dropUndefinedKeys , logger , timestampInSeconds , uuid4 } from '@sentry/utils' ;
17
17
import { getClient , getCurrentScope } from '../currentScopes' ;
18
18
import { DEBUG_BUILD } from '../debug-build' ;
19
19
@@ -252,32 +252,17 @@ export class SentrySpan implements Span {
252
252
// So for now, this is either what we previously refer to as the root span,
253
253
// or a standalone span.
254
254
const isSegmentSpan = this . _isStandaloneSpan || this === getRootSpan ( this ) ;
255
- consoleSandbox ( ( ) => {
256
- console . log ( 'isSegmentSpan' , isSegmentSpan ) ;
257
- } ) ;
258
255
259
- // If this is not a root span (== segment span) and we don't want to send it
260
256
if ( ! isSegmentSpan ) {
261
- consoleSandbox ( ( ) => {
262
- console . log ( 'early ret' ) ;
263
- } ) ;
264
257
return ;
265
258
}
266
259
267
260
// if this is a standalone span, we send it immediately
268
261
if ( this . _isStandaloneSpan ) {
269
- consoleSandbox ( ( ) => {
270
- console . log ( 'calling sendSpanEnvelope' ) ;
271
- } ) ;
272
-
273
262
sendSpanEnvelope ( createSpanEnvelope ( [ this ] ) ) ;
274
263
return ;
275
264
}
276
265
277
- consoleSandbox ( ( ) => {
278
- console . log ( 'converting to transaction' ) ;
279
- } ) ;
280
-
281
266
const transactionEvent = this . _convertSpanToTransaction ( ) ;
282
267
if ( transactionEvent ) {
283
268
const scope = getCapturedScopesOnSpan ( this ) . scope || getCurrentScope ( ) ;
@@ -373,22 +358,13 @@ function isStandaloneSpan(span: Span): boolean {
373
358
}
374
359
375
360
function sendSpanEnvelope ( envelope : SpanEnvelope ) : void {
376
- consoleSandbox ( ( ) => {
377
- console . log ( 'sendSpanEnvelope' , envelope ) ;
378
- } ) ;
379
361
const client = getClient ( ) ;
380
362
if ( ! client ) {
381
- consoleSandbox ( ( ) => {
382
- console . log ( 'no client' ) ;
383
- } ) ;
384
363
return ;
385
364
}
386
365
387
366
const transport = client . getTransport ( ) ;
388
367
if ( transport ) {
389
- consoleSandbox ( ( ) => {
390
- console . log ( 'transport send' ) ;
391
- } ) ;
392
368
transport . send ( envelope ) . then ( null , reason => {
393
369
DEBUG_BUILD && logger . error ( 'Error while sending span:' , reason ) ;
394
370
} ) ;
0 commit comments