@@ -80,7 +80,7 @@ export interface TracingOptions {
80
80
/**
81
81
* Flag Transactions where tabs moved to background with "cancelled". Browser background tab timing is
82
82
* not suited towards doing precise measurements of operations. Background transaction can mess up your
83
- * statistics in non deterministic ways that's why we by default recommend leaving this opition enabled.
83
+ * statistics in non deterministic ways that's why we by default recommend leaving this option enabled.
84
84
*
85
85
* Default: true
86
86
*/
@@ -194,7 +194,7 @@ export class Tracing implements Integration {
194
194
traceXHR : true ,
195
195
tracingOrigins : defaultTracingOrigins ,
196
196
} ;
197
- // NOTE: Logger doesn't work in contructors , as it's initialized after integrations instances
197
+ // NOTE: Logger doesn't work in constructors , as it's initialized after integrations instances
198
198
if ( ! _options || ! Array . isArray ( _options . tracingOrigins ) || _options . tracingOrigins . length === 0 ) {
199
199
this . _emitOptionsWarning = true ;
200
200
}
@@ -481,7 +481,7 @@ export class Tracing implements Integration {
481
481
Tracing . _log ( '[Tracing] cancelling span since transaction ended early' , JSON . stringify ( span , undefined , 2 ) ) ;
482
482
}
483
483
484
- // We remove all spans that happend after the end of the transaction
484
+ // We remove all spans that occurred after the end of the transaction
485
485
// This is here to prevent super long transactions and timing issues
486
486
const keepSpan = span . startTimestamp < endTimestamp ;
487
487
if ( ! keepSpan ) {
@@ -764,7 +764,7 @@ export class Tracing implements Integration {
764
764
}
765
765
766
766
/**
767
- * Starts tracking for a specifc activity
767
+ * Starts tracking for a specific activity
768
768
*
769
769
* @param name Name of the activity, can be any string (Only used internally to identify the activity)
770
770
* @param spanContext If provided a Span with the SpanContext will be created.
@@ -801,7 +801,7 @@ export class Tracing implements Integration {
801
801
}
802
802
803
803
Tracing . _log ( `[Tracing] pushActivity: ${ name } #${ Tracing . _currentIndex } ` ) ;
804
- Tracing . _log ( '[Tracing] activies count' , Object . keys ( Tracing . _activities ) . length ) ;
804
+ Tracing . _log ( '[Tracing] activities count' , Object . keys ( Tracing . _activities ) . length ) ;
805
805
if ( options && typeof options . autoPopAfter === 'number' ) {
806
806
Tracing . _log ( `[Tracing] auto pop of: ${ name } #${ Tracing . _currentIndex } in ${ options . autoPopAfter } ms` ) ;
807
807
const index = Tracing . _currentIndex ;
@@ -852,13 +852,13 @@ export class Tracing implements Integration {
852
852
}
853
853
854
854
const count = Object . keys ( Tracing . _activities ) . length ;
855
- Tracing . _log ( '[Tracing] activies count' , count ) ;
855
+ Tracing . _log ( '[Tracing] activities count' , count ) ;
856
856
857
857
if ( count === 0 && Tracing . _activeTransaction ) {
858
858
const timeout = Tracing . options && Tracing . options . idleTimeout ;
859
859
Tracing . _log ( `[Tracing] Flushing Transaction in ${ timeout } ms` ) ;
860
860
// We need to add the timeout here to have the real endtimestamp of the transaction
861
- // Remeber timestampWithMs is in seconds, timeout is in ms
861
+ // Remember timestampWithMs is in seconds, timeout is in ms
862
862
const end = timestampWithMs ( ) + timeout / 1000 ;
863
863
setTimeout ( ( ) => {
864
864
if ( Object . keys ( Tracing . _activities ) . length === 0 && Tracing . _activeTransaction ) {
0 commit comments