@@ -333,7 +333,7 @@ describe('startSpan', () => {
333
333
expect ( getActiveSpan ( ) ) . toBe ( undefined ) ;
334
334
} ) ;
335
335
336
- it ( 'allows to force a transaction with isTransaction =true' , async ( ) => {
336
+ it ( 'allows to force a transaction with forceTransaction =true' , async ( ) => {
337
337
const options = getDefaultTestClientOptions ( { tracesSampleRate : 1.0 } ) ;
338
338
client = new TestClient ( options ) ;
339
339
setCurrentClient ( client ) ;
@@ -350,7 +350,7 @@ describe('startSpan', () => {
350
350
351
351
startSpan ( { name : 'outer transaction' } , ( ) => {
352
352
startSpan ( { name : 'inner span' } , ( ) => {
353
- startSpan ( { name : 'inner transaction' , isTransaction : true } , ( ) => {
353
+ startSpan ( { name : 'inner transaction' , forceTransaction : true } , ( ) => {
354
354
startSpan ( { name : 'inner span 2' } , ( ) => {
355
355
// all good
356
356
} ) ;
@@ -623,7 +623,7 @@ describe('startSpanManual', () => {
623
623
expect ( getActiveSpan ( ) ) . toBe ( undefined ) ;
624
624
} ) ;
625
625
626
- it ( 'allows to force a transaction with isTransaction =true' , async ( ) => {
626
+ it ( 'allows to force a transaction with forceTransaction =true' , async ( ) => {
627
627
const options = getDefaultTestClientOptions ( { tracesSampleRate : 1.0 } ) ;
628
628
client = new TestClient ( options ) ;
629
629
setCurrentClient ( client ) ;
@@ -640,7 +640,7 @@ describe('startSpanManual', () => {
640
640
641
641
startSpanManual ( { name : 'outer transaction' } , span => {
642
642
startSpanManual ( { name : 'inner span' } , span => {
643
- startSpanManual ( { name : 'inner transaction' , isTransaction : true } , span => {
643
+ startSpanManual ( { name : 'inner transaction' , forceTransaction : true } , span => {
644
644
startSpanManual ( { name : 'inner span 2' } , span => {
645
645
// all good
646
646
span ?. end ( ) ;
@@ -852,7 +852,7 @@ describe('startInactiveSpan', () => {
852
852
expect ( getActiveSpan ( ) ) . toBeUndefined ( ) ;
853
853
} ) ;
854
854
855
- it ( 'allows to force a transaction with isTransaction =true xxx' , async ( ) => {
855
+ it ( 'allows to force a transaction with forceTransaction =true xxx' , async ( ) => {
856
856
const options = getDefaultTestClientOptions ( { tracesSampleRate : 1.0 } ) ;
857
857
client = new TestClient ( options ) ;
858
858
setCurrentClient ( client ) ;
@@ -869,7 +869,7 @@ describe('startInactiveSpan', () => {
869
869
870
870
startSpan ( { name : 'outer transaction' } , ( ) => {
871
871
startSpan ( { name : 'inner span' } , ( ) => {
872
- const innerTransaction = startInactiveSpan ( { name : 'inner transaction' , isTransaction : true } ) ;
872
+ const innerTransaction = startInactiveSpan ( { name : 'inner transaction' , forceTransaction : true } ) ;
873
873
innerTransaction ?. end ( ) ;
874
874
} ) ;
875
875
} ) ;
0 commit comments