@@ -36,23 +36,23 @@ export interface BrowserTracingOptions {
36
36
* The time that has to pass without any span being created.
37
37
* If this time is exceeded, the idle span will finish.
38
38
*
39
- * Default: 1000ms
39
+ * Default: 1000 (ms)
40
40
*/
41
41
idleTimeout : number ;
42
42
43
43
/**
44
44
* The max. time an idle span may run.
45
45
* If this time is exceeded, the idle span will finish no matter what.
46
46
*
47
- * Default: 30000ms
47
+ * Default: 30000 (ms)
48
48
*/
49
49
finalTimeout : number ;
50
50
51
51
/**
52
52
The max. time an idle span may run.
53
53
* If this time is exceeded, the idle span will finish no matter what.
54
54
*
55
- * Default: 15000ms
55
+ * Default: 15000 (ms)
56
56
*/
57
57
childSpanTimeout : number ;
58
58
@@ -185,7 +185,7 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
185
185
let latestRouteSource : TransactionSource | undefined ;
186
186
187
187
/** Create routing idle transaction. */
188
- function _createRouteSpan ( client : Client , startSpanOptions : StartSpanOptions ) : Span | undefined {
188
+ function _createRouteSpan ( client : Client , startSpanOptions : StartSpanOptions ) : Span {
189
189
const { beforeStartSpan, idleTimeout, finalTimeout, childSpanTimeout } = options ;
190
190
191
191
const isPageloadTransaction = startSpanOptions . op === 'pageload' ;
@@ -219,10 +219,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
219
219
} ,
220
220
} ) ;
221
221
222
- if ( ! idleSpan ) {
223
- return ;
224
- }
225
-
226
222
if ( isPageloadTransaction && WINDOW . document ) {
227
223
WINDOW . document . addEventListener ( 'readystatechange' , ( ) => {
228
224
if ( [ 'interactive' , 'complete' ] . includes ( WINDOW . document . readyState ) ) {
0 commit comments