Skip to content

Commit e5eede8

Browse files
AbhiPrasadonurtemizkan
authored andcommitted
fix(angular): Finish routing span before starting another one (#4191)
1 parent a1ad7aa commit e5eede8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/angular/src/tracing.ts

Lines changed: 3 additions & 0 deletions
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)