Skip to content

Commit

Permalink
fix span creation in journey_ftr_harness
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Jun 29, 2023
1 parent 00b08a1 commit 9088f35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/kbn-journeys/journey/journey_ftr_harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 9088f35

Please sign in to comment.