Skip to content

Comments

💥 remove trackBfcacheViews and track bfcache restores by default#4228

Draft
BenoitZugmeyer wants to merge 1 commit intov7from
benoit/remove-track-bfcache-views
Draft

💥 remove trackBfcacheViews and track bfcache restores by default#4228
BenoitZugmeyer wants to merge 1 commit intov7from
benoit/remove-track-bfcache-views

Conversation

@BenoitZugmeyer
Copy link
Member

Motivation

trackBfcacheViews was introduced as an opt-in option because it adds a new
bf_cache loading type to view events, which could surprise customers with
existing dashboards or queries not accounting for it. It is now being promoted
to default behavior.

Changes

  • Remove trackBfcacheViews from RumInitConfiguration and RumConfiguration
  • BFCache restores are now always tracked when views are tracked automatically
    (i.e. trackViewsManually is not set)
  • Remove track_bfcache_views from configuration telemetry serialization

Test instructions

  1. Load the RUM SDK sandbox (yarn dev, http://localhost:8080)
  2. Add a link to an external page in the sandbox, click it, then navigate back
  3. Check RUM batches — a view event with loading_type: "bf_cache" should be present

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@github-actions
Copy link

github-actions bot commented Feb 23, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@BenoitZugmeyer BenoitZugmeyer changed the base branch from main to v7 February 23, 2026 15:55
@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Feb 23, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 170.61 KiB 170.51 KiB -103 B -0.06%
Rum Profiler 4.74 KiB 4.74 KiB 0 B 0.00%
Rum Recorder 24.91 KiB 24.91 KiB 0 B 0.00%
Logs 56.38 KiB 56.38 KiB 0 B 0.00%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 127.89 KiB 127.79 KiB -103 B -0.08%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance

Pending...

🧠 Memory Performance

Pending...

🔗 RealWorld

@datadog-datadog-prod-us1-2
Copy link

datadog-datadog-prod-us1-2 bot commented Feb 23, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 76.99% (+0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 21b6036 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

The option was introduced as opt-in because it adds a new `bf_cache`
loading type to view events, which could surprise customers with
existing dashboards or queries not accounting for it. It is now being
promoted to default behavior.
@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/remove-track-bfcache-views branch from cf986a9 to 21b6036 Compare February 23, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant