Skip to content

Commit 91e171b

Browse files
committed
📝 Add RUM init call search to v6 step 3 for projects relying on false defaults
1 parent 06fcd06 commit 91e171b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • .claude/skills/upgrade-browser-sdk-v6

‎.claude/skills/upgrade-browser-sdk-v6/SKILL.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ The `site` option has a stricter TypeScript type. If you pass a non-standard val
9696

9797
Search: `grep -rn 'trackUserInteractions\|trackResources\|trackLongTasks\|traceContextInjection\|tracestate\|allowedTracingUrls\|propagatorTypes' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`
9898

99+
Also search for all RUM init calls to catch projects that omit these options and relied on the v5 `false` defaults: `grep -rn 'DD_RUM\.init\|datadogRum\.init' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`. For each init call, check whether `trackUserInteractions`, `trackResources`, and `trackLongTasks` are explicitly set — if omitted, they now default to `true` in v6.
100+
99101
## Step 4: Handle Session Replay lazy loading
100102

101103
Session Replay is now lazy-loaded using dynamic imports. The module loads only for sessions sampled for replay, reducing bundle size for others.

0 commit comments

Comments
 (0)