@@ -49,7 +49,7 @@ These v4 parameter names no longer exist in v5. Replace them:
4949| ` premiumSampleRate ` | ` sessionReplaySampleRate ` |
5050| ` replaySampleRate ` | ` sessionReplaySampleRate ` |
5151
52- Search: ` grep -rn 'proxyUrl\|sampleRate\|allowedTracingOrigins\|tracingSampleRate\|trackInteractions\|premiumSampleRate\|replaySampleRate' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" `
52+ Search: ` grep -rn 'proxyUrl\|sampleRate\|allowedTracingOrigins\|tracingSampleRate\|trackInteractions\|premiumSampleRate\|replaySampleRate' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte" `
5353
5454** Note** : ` sampleRate ` matches broadly. Look specifically for init config objects — ` sessionSampleRate ` is the v5 name for the session sampling rate.
5555
@@ -78,7 +78,7 @@ These v4 API method names no longer exist in v5:
7878| ` logger.addContext ` | ` logger.setContextProperty ` |
7979| ` logger.removeContext ` | ` logger.removeContextProperty ` |
8080
81- Search: ` grep -rn 'removeUser\|addRumGlobalContext\|removeRumGlobalContext\|getRumGlobalContext\|setRumGlobalContext\|addLoggerGlobalContext\|removeLoggerGlobalContext\|getLoggerGlobalContext\|setLoggerGlobalContext\|\.addContext\|\.removeContext' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" `
81+ Search: ` grep -rn 'removeUser\|addRumGlobalContext\|removeRumGlobalContext\|getRumGlobalContext\|setRumGlobalContext\|addLoggerGlobalContext\|removeLoggerGlobalContext\|getLoggerGlobalContext\|setLoggerGlobalContext\|\.addContext\|\.removeContext' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte" `
8282
8383## Step 4: Update Session Replay configuration
8484
@@ -132,7 +132,7 @@ DD_RUM.init({
132132})
133133```
134134
135- Search: ` grep -rn 'sessionReplaySampleRate\|startSessionReplayRecording\|defaultPrivacyLevel\|trackResources\|trackLongTasks' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" `
135+ Search: ` grep -rn 'sessionReplaySampleRate\|startSessionReplayRecording\|defaultPrivacyLevel\|trackResources\|trackLongTasks' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte" `
136136
137137## Step 5: Update changed APIs and behaviors
138138
@@ -191,7 +191,7 @@ Resource `method` field is now always uppercase (e.g., `GET`, `POST`). Update an
191191
192192The ` session.plan ` field is now only available on session events, not on all event types. Update any dashboard or monitor queries that reference ` session.plan ` on non-session events.
193193
194- Search: ` grep -rn 'beforeSend\|trackFrustrations\|PerformanceEntryRepresentation\|in_foreground_periods\|context\.event\b\|startTime' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" `
194+ Search: ` grep -rn 'beforeSend\|trackFrustrations\|PerformanceEntryRepresentation\|in_foreground_periods\|context\.event\b\|startTime' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte" `
195195
196196## Step 6: Handle trusted events
197197
@@ -213,7 +213,7 @@ DD_RUM.init({
213213})
214214```
215215
216- Search: ` grep -rn 'dispatchEvent\|new Event\|new MouseEvent\|new KeyboardEvent\|\.click()' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" `
216+ Search: ` grep -rn 'dispatchEvent\|new Event\|new MouseEvent\|new KeyboardEvent\|\.click()' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte" `
217217
218218## Step 7: Update infrastructure
219219
0 commit comments