diff --git a/packages/kbn-journeys/journey/journey_ftr_harness.ts b/packages/kbn-journeys/journey/journey_ftr_harness.ts index bf5af70f3d698..1a227db49f11e 100644 --- a/packages/kbn-journeys/journey/journey_ftr_harness.ts +++ b/packages/kbn-journeys/journey/journey_ftr_harness.ts @@ -240,9 +240,8 @@ export class JourneyFtrHarness { return await block(); } - const span = this.apm?.startSpan(name, type ?? null, { - childOf: this.currentTransaction, - }); + const span = this.currentTransaction.startSpan(name, type ?? null); + if (!span) { return await block(); }