@@ -384,7 +384,7 @@ export class Span implements SpanInterface {
384
384
const { publicKey } = ( client && client . getDsn ( ) ) || { } ;
385
385
386
386
const metadata = this . transaction && this . transaction . metadata ;
387
- const sampelRate = metadata && metadata . transactionSampling && metadata . transactionSampling . rate ;
387
+ const sampleRate = metadata && metadata . transactionSampling && metadata . transactionSampling . rate ;
388
388
389
389
const traceId = this . traceId ;
390
390
@@ -402,15 +402,15 @@ export class Span implements SpanInterface {
402
402
transactionName && setBaggageValue ( baggage , 'transaction' , transactionName ) ;
403
403
userId && setBaggageValue ( baggage , 'userid' , userId ) ;
404
404
userSegment && setBaggageValue ( baggage , 'usersegment' , userSegment ) ;
405
- sampelRate &&
405
+ sampleRate &&
406
406
setBaggageValue (
407
407
baggage ,
408
408
'samplerate' ,
409
409
// This will make sure that expnent notation (e.g. 1.45e-14) is converted to simple decimal representation
410
410
// Another edge case would be something like Number.NEGATIVE_INFINITY in which case we could still
411
411
// add something like .replace(/-?∞/, '0'). For the sake of saving bytes, I'll not add this until
412
412
// it becomes a problem
413
- sampelRate . toLocaleString ( 'fullwide' , { useGrouping : false , maximumFractionDigits : 16 } ) ,
413
+ sampleRate . toLocaleString ( 'fullwide' , { useGrouping : false , maximumFractionDigits : 16 } ) ,
414
414
) ;
415
415
publicKey && setBaggageValue ( baggage , 'publickey' , publicKey ) ;
416
416
traceId && setBaggageValue ( baggage , 'traceid' , traceId ) ;
0 commit comments