Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit c61a234

Browse files
committed
Fix navigation span end
It looks like we weren't ending the span when a new navigation span was being started.
1 parent 4f43248 commit c61a234

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/frame_session.go

+5
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,11 @@ func (fs *FrameSession) processNavigationSpan(url string, id cdp.FrameID) {
797797
return
798798
}
799799

800+
// End the navigation span if it is non-nil
801+
if fs.mainFrameSpan != nil {
802+
fs.mainFrameSpan.End()
803+
}
804+
800805
_, fs.mainFrameSpan = TraceNavigation(
801806
fs.ctx, fs.targetID.String(), trace.WithAttributes(attribute.String("navigation.url", url)),
802807
)

0 commit comments

Comments
 (0)