Skip to content

📝 Add Claude Code skill for v6 to v7 SDK migration#4486

Merged
BenoitZugmeyer merged 5 commits intov7from
benoit/release-notes-draft
Apr 29, 2026
Merged

📝 Add Claude Code skill for v6 to v7 SDK migration#4486
BenoitZugmeyer merged 5 commits intov7from
benoit/release-notes-draft

Conversation

@BenoitZugmeyer
Copy link
Copy Markdown
Member

@BenoitZugmeyer BenoitZugmeyer commented Apr 15, 2026

Motivation

Help users upgrade from Datadog Browser SDK v6 to v7 with a systematic, step-by-step guide they can run through Claude Code.

Changes

Adds .claude/skills/upgrade-browser-sdk-v7/SKILL.md, a 6-step upgrade guide covering:

  1. CDN/npm version updates (incl. v6v7 URL patterns and US1-FED flat layout)
  2. crossorigin attribute
  3. Removed options (betaEncodeCookieOptions, allowFallbackToLocalStorage, trackBfcacheViews, usePciIntake, …)
  4. Changed APIs
  5. Behavioral defaults
  6. Infrastructure changes

The release notes draft previously in this PR has been moved to the documentation repo: DataDog/documentation#36214

Test instructions

  • Check out the branch and open a project still on Browser SDK v6.
  • Run Claude Code and invoke the upgrade-browser-sdk-v7 skill.
  • Verify each step runs the expected search patterns and guidance is correct.

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

@BenoitZugmeyer BenoitZugmeyer changed the base branch from main to v7 April 15, 2026 09:49
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da Bot commented Apr 15, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 168.22 KiB 168.22 KiB 0 B 0.00%
Rum Profiler 6.09 KiB 6.09 KiB 0 B 0.00%
Rum Recorder 27.10 KiB 27.10 KiB 0 B 0.00%
Logs 53.80 KiB 53.80 KiB 0 B 0.00%
Rum Slim 126.58 KiB 126.58 KiB 0 B 0.00%
Worker 22.99 KiB 22.99 KiB 0 B 0.00%
🚀 CPU Performance

Pending...

🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 38.44 KiB 38.44 KiB +1 B
RUM - add action 64.32 KiB 63.35 KiB -999 B
RUM - add timing 42.09 KiB 41.55 KiB -549 B
RUM - add error 69.03 KiB 67.39 KiB -1.64 KiB
RUM - start/stop session replay recording 41.75 KiB 41.20 KiB -568 B
RUM - start view 477.81 KiB 475.68 KiB -2.12 KiB
Logs - log message 53.80 KiB 54.71 KiB +929 B

🔗 RealWorld

@datadog-datadog-prod-us1
Copy link
Copy Markdown

datadog-datadog-prod-us1 Bot commented Apr 15, 2026

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 77.50% (+0.02%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fab7c14 | Docs | Datadog PR Page | Give us feedback!

- Add session store key rename (_dd_s → _dd_s_v2) migration note
- Replace addTiming section with session_renewal view loading type
- Add document resource timing based on PerformanceNavigationTiming
- Fix markdown table alignment
Systematic 6-step upgrade guide covering CDN/npm version updates,
crossorigin attribute, removed options, changed APIs, behavioral
defaults, and infrastructure changes.
@thomas-lebeau thomas-lebeau force-pushed the benoit/release-notes-draft branch from 68e1f2f to 8702724 Compare April 16, 2026 13:58
Content has been moved to the documentation repo:
DataDog/documentation#36214
@thomas-lebeau thomas-lebeau changed the title V7 release notes draft 📝 Add Claude Code skill for v6 to v7 SDK migration Apr 24, 2026
@thomas-lebeau thomas-lebeau marked this pull request as ready for review April 24, 2026 13:08
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner April 24, 2026 13:08
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf3b8903e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

| `datadoghq-browser-agent.com/us1/v6/datadog-logs.js` | `datadoghq-browser-agent.com/us1/v7/datadog-logs.js` |
| `datadoghq-browser-agent.com/us1/v6/datadog-rum-slim.js` | `datadoghq-browser-agent.com/us1/v7/datadog-rum-slim.js` |

Replace `us1` with your site: `eu1`, `us3`, `us5`, `ap1`. For US1-FED, the pattern is flat: `datadog-rum-v7.js` (no site prefix).
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include AP2 in the CDN site list

For projects deployed on the AP2 Datadog site, this list leaves out the valid ap2 CDN path, even though the repo's datacenter metadata treats ap2 as a production datacenter and the public CDN setup includes /ap2/v6/... URLs. Users following this migration guide may not update https://www.datadoghq-browser-agent.com/ap2/v6/... to /ap2/v7/..., or may incorrectly choose AP1, which prevents the SDK from loading from the right site.

Useful? React with 👍 / 👎.

| Cancelled request errors removed (Logs) | Aborted fetch/XHR no longer generate network error logs. | No action needed — reduces noise. |
| Logs always requires session storage | Without cookies or localStorage, Logs SDK won't start. | Use `sessionPersistence: 'memory'` for worker environments. |
| Session Replay: Change Records | New serialization format. More accurate, less bandwidth. | Update if you depend on raw segment format. |
| Async chunk names prefixed with `datadog` | e.g., `datadog-rum-recorder.js`. | Update CSP `script-src` rules or caching configs. |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the actual async chunk names

For CDN RUM users with CSP or cache rules, datadog-rum-recorder.js is not the file v7 publishes: the webpack chunk names and deploy specs use chunks/datadogRecorder-<hash>-datadog-rum.js and chunks/datadogProfiler-<hash>-datadog-rum.js. Following this example would update allowlists/caches for a non-existent file and still leave Session Replay or profiling dynamic imports blocked.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

@BenoitZugmeyer BenoitZugmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment thread .claude/skills/upgrade-browser-sdk-v7/SKILL.md Outdated
Comment thread .claude/skills/upgrade-browser-sdk-v7/SKILL.md Outdated
- Add ap2 site to CDN replacement list
- Fix grep patterns to use single quotes (avoid shell escaping issues)
- Update async chunk name examples with hashed format (datadogRecorder/datadogProfiler)
- Restructure CSP infrastructure section as a bulleted list for readability
@BenoitZugmeyer BenoitZugmeyer merged commit 54e9a7d into v7 Apr 29, 2026
19 checks passed
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/release-notes-draft branch April 29, 2026 09:00
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants