@@ -36,23 +36,23 @@ export interface BrowserTracingOptions {
3636 * The time that has to pass without any span being created.
3737 * If this time is exceeded, the idle span will finish.
3838 *
39- * Default: 1000ms
39+ * Default: 1000 (ms)
4040 */
4141 idleTimeout : number ;
4242
4343 /**
4444 * The max. time an idle span may run.
4545 * If this time is exceeded, the idle span will finish no matter what.
4646 *
47- * Default: 30000ms
47+ * Default: 30000 (ms)
4848 */
4949 finalTimeout : number ;
5050
5151 /**
5252 The max. time an idle span may run.
5353 * If this time is exceeded, the idle span will finish no matter what.
5454 *
55- * Default: 15000ms
55+ * Default: 15000 (ms)
5656 */
5757 childSpanTimeout : number ;
5858
@@ -185,7 +185,7 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
185185 let latestRouteSource : TransactionSource | undefined ;
186186
187187 /** Create routing idle transaction. */
188- function _createRouteSpan ( client : Client , startSpanOptions : StartSpanOptions ) : Span | undefined {
188+ function _createRouteSpan ( client : Client , startSpanOptions : StartSpanOptions ) : Span {
189189 const { beforeStartSpan, idleTimeout, finalTimeout, childSpanTimeout } = options ;
190190
191191 const isPageloadTransaction = startSpanOptions . op === 'pageload' ;
@@ -219,10 +219,6 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
219219 } ,
220220 } ) ;
221221
222- if ( ! idleSpan ) {
223- return ;
224- }
225-
226222 if ( isPageloadTransaction && WINDOW . document ) {
227223 WINDOW . document . addEventListener ( 'readystatechange' , ( ) => {
228224 if ( [ 'interactive' , 'complete' ] . includes ( WINDOW . document . readyState ) ) {
0 commit comments