Skip to content

Add structured log for each page navigation event recording the route and time since last navigation #607

Description

@Chucks1093

Summary

There is no client-side log tracking navigation between routes, making it difficult to reconstruct user journeys when debugging production issues. A debug-level log on each route change should record the destination route and the elapsed time since the previous navigation.

Scope

  • Listen to route change events in the router and emit a debug-level log on each transition with fields: from_route, to_route, time_since_last_nav_ms
  • time_since_last_nav_ms is the wall-clock time between the previous navigation completion and the current one
  • Log emitted after the route change completes, not when it begins
  • from_route is null on the first navigation (page load)

Acceptance Criteria

  • Log emitted after each route change with all three fields
  • from_route is null on first navigation
  • time_since_last_nav_ms reflects time since last completed navigation
  • Log not emitted in the test environment

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions