Skip to content

Commit af0e436

Browse files
authored
fix(angular): Finish routing span before starting another one (#4191)
1 parent 4887f98 commit af0e436

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/angular/src/tracing.ts

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export class TraceService implements OnDestroy {
7878
}
7979

8080
if (activeTransaction) {
81+
if (this._routingSpan) {
82+
this._routingSpan.finish();
83+
}
8184
this._routingSpan = activeTransaction.startChild({
8285
description: `${navigationEvent.url}`,
8386
op: `angular.routing`,

0 commit comments

Comments
 (0)