Skip to content

Commit 06fcd06

Browse files
committed
📝 Add RUM init call search to v5 step 4 for projects relying on defaults
1 parent 7e1c9c8 commit 06fcd06

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ DD_RUM.init({
134134

135135
Search: `grep -rn 'sessionReplaySampleRate\|startSessionReplayRecording\|defaultPrivacyLevel\|trackResources\|trackLongTasks' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"`
136136

137+
Also search for all RUM init calls to catch projects that omit these options and rely on v4 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, verify that `sessionReplaySampleRate`, `defaultPrivacyLevel`, and `trackResources`/`trackLongTasks` are explicitly set.
138+
137139
## Step 5: Update changed APIs and behaviors
138140

139141
### 5a. `beforeSend` must return a boolean

0 commit comments

Comments
 (0)