File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export class BrowserTracing implements Integration {
317
317
op,
318
318
trimEnd : true ,
319
319
metadata : {
320
- source : this . _latestRouteSource ?? 'url' ,
320
+ source : this . _latestRouteSource || 'url' ,
321
321
} ,
322
322
} ;
323
323
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ function _addPerformanceNavigationTiming(
304
304
}
305
305
_startChild ( transaction , {
306
306
op : 'browser' ,
307
- description : description ?? event ,
307
+ description : description || event ,
308
308
startTimestamp : timeOrigin + msToSec ( start ) ,
309
309
endTimestamp : timeOrigin + msToSec ( end ) ,
310
310
} ) ;
Original file line number Diff line number Diff line change @@ -294,17 +294,17 @@ export class Span implements SpanInterface {
294
294
* @inheritDoc
295
295
*/
296
296
public updateWithContext ( spanContext : SpanContext ) : this {
297
- this . data = spanContext . data ?? { } ;
297
+ this . data = spanContext . data || { } ;
298
298
this . description = spanContext . description ;
299
299
this . endTimestamp = spanContext . endTimestamp ;
300
300
this . op = spanContext . op ;
301
301
this . parentSpanId = spanContext . parentSpanId ;
302
302
this . sampled = spanContext . sampled ;
303
- this . spanId = spanContext . spanId ?? this . spanId ;
304
- this . startTimestamp = spanContext . startTimestamp ?? this . startTimestamp ;
303
+ this . spanId = spanContext . spanId || this . spanId ;
304
+ this . startTimestamp = spanContext . startTimestamp || this . startTimestamp ;
305
305
this . status = spanContext . status ;
306
- this . tags = spanContext . tags ?? { } ;
307
- this . traceId = spanContext . traceId ?? this . traceId ;
306
+ this . tags = spanContext . tags || { } ;
307
+ this . traceId = spanContext . traceId || this . traceId ;
308
308
309
309
return this ;
310
310
}
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
238
238
public updateWithContext ( transactionContext : TransactionContext ) : this {
239
239
super . updateWithContext ( transactionContext ) ;
240
240
241
- this . name = transactionContext . name ?? '' ;
241
+ this . name = transactionContext . name || '' ;
242
242
243
243
this . _trimEnd = transactionContext . trimEnd ;
244
244
You can’t perform that action at this time.
0 commit comments