Repository navigation
✨ [RUM-17885] Enable Soft Navigation tracking behind the betaTrackSoftNavigations option - #5283
Conversation
Bundles Sizes Evolution
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 7c87601 | Docs | View more details | Give us feedback! |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The beta option activates the existing soft-navigation path while preserving experimental-flag support, route-change restrictions, and browser-support checks. Configuration validation and telemetry serialization consistently include the new option.
🤖 Bits Code Review · Commit 80a5253
…TrackSoftNavigations
There was a problem hiding this comment.
More details
The beta option consistently controls soft-navigation tracking and configuration telemetry while retaining the browser-support and manual-metrics guards. Runtime validation remains limited by the missing Playwright Chromium executable.
🤖 Bits Code Review · Commit 7c87601
Motivation
Soft Navigation shipped behind the
soft_navigationexperimental flag in #4966 and #5167, and we've been running it in the Datadog app. The flag is internal, so customers can't try it yet. #2696 asked for a beta while the API was still experimental. This replaces it with a beta init option so customers can opt in before it becomes the default, likely in v8.Changes
betaTrackSoftNavigationsis off by default and replaces thesoft_navigationflag, same asbetaEnableViewUpdatesin #4833. It only applies toroute_changeviews on browsers that support the API (Chrome 151+), other browsers keep the current behavior.web-ui enables the flag through
enableExperimentalFeatures. When it picks up this version, it needs to passbetaTrackSoftNavigationsinstead, like it does forbetaEnableViewUpdates, or the experiment stops. Unknown experimental features are ignored, so nothing breaks.The option is reported in configuration telemetry as
beta_track_soft_navigations.I synced the schemas with rum-events-format master to get
beta_track_soft_navigations(DataDog/rum-events-format#463). The sync also pulls unrelated schema changes already on master (theunrealsource, themessageresource type,init_contextand a few others). They're all additive.The unit and E2E tests now go through the option.
Test instructions
betaTrackSoftNavigations: truein your init config.history.pushState.route_changeview event,view.performance.fcpandview.performance.lcpshould be populated. Without the option, they aren't.telemetrySampleRateandtelemetryConfigurationSampleRateat 100, the configuration telemetry should reportbeta_track_soft_navigations: true.Unit:
yarn test:unit packages/browser-rum-core/src/domain/configuration packages/browser-rum-core/src/domain/viewE2E:
yarn test:e2e -g "soft navigation"Checklist