[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-datadog-labs-upgrade-browser-sdk-v6":3,"mdc--snlnnx-key":36,"related-org-datadog-labs-upgrade-browser-sdk-v6":1584,"related-repo-datadog-labs-upgrade-browser-sdk-v6":1760},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":34,"mdContent":35},"upgrade-browser-sdk-v6","upgrade Datadog Browser SDK to v6","Upgrade Datadog Browser SDK from v5 to v6. Use when encountering removed options like useCrossSiteSessionCookie, sendLogsAfterSessionExpiration, or when dropping IE11 support, or when a project references datadoghq-browser-agent.com CDN with \u002Fv5\u002F paths.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"datadog-labs","Datadog Labs","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fdatadog-labs.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Observability","observability","tag",{"name":17,"slug":18,"type":15},"Datadog","datadog",{"name":20,"slug":21,"type":15},"Migration","migration",{"name":23,"slug":24,"type":15},"Debugging","debugging",145,"https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills","2026-06-27T06:49:14.613369",null,19,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":33},[],"Public repository for Datadog Agent Skills","https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills\u002Ftree\u002FHEAD\u002Fdd-browser-sdk\u002Fupgrade-v6","---\nname: upgrade-browser-sdk-v6\ndescription: >\n  Upgrade Datadog Browser SDK from v5 to v6. Use when encountering removed options like\n  useCrossSiteSessionCookie, sendLogsAfterSessionExpiration, or when dropping IE11 support,\n  or when a project references datadoghq-browser-agent.com CDN with \u002Fv5\u002F paths.\nmetadata:\n  version: \"1.0.0\"\n  author: datadog-labs\n  repository: https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fagent-skills\n  tags: datadog,browser-sdk,rum,logs,migration,v6,upgrade\n---\n\n# Upgrade Datadog Browser SDK to v6\n\nSystematic migration guide from v5 to v6. Follow steps 1-6 in order. Each step includes a search pattern to find affected code.\n\n## Step 1: Update SDK version\n\n**CDN setup** — update script `src` URLs:\n\n| v5 pattern                                               | v6 replacement                                           |\n| -------------------------------------------------------- | -------------------------------------------------------- |\n| `datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-rum.js`      | `datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-rum.js`      |\n| `datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-logs.js`     | `datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-logs.js`     |\n| `datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-rum-slim.js` | `datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-rum-slim.js` |\n\nReplace `us1` with your site: `eu1`, `us3`, `us5`, `ap1`, `ap2`. For US1-FED, the pattern is flat with no site prefix: `datadog-rum-v6.js`, `datadog-logs-v6.js`, `datadog-rum-slim-v6.js`.\n\nSearch: `grep -r \"datadoghq-browser-agent.com.*v5\" --include=\"*.html\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\"`\n\n**npm setup** — update `package.json` dependencies:\n\n```\n\"@datadog\u002Fbrowser-rum\": \"^6.0.0\"\n\"@datadog\u002Fbrowser-logs\": \"^6.0.0\"\n\"@datadog\u002Fbrowser-rum-slim\": \"^6.0.0\"\n```\n\nThen run your package manager (`npm install`, `yarn install`, etc.) and rebuild.\n\nAlso upgrade framework integrations to v6 if used: `@datadog\u002Fbrowser-rum-react`.\n\nSearch: `grep -r \"@datadog\u002Fbrowser-\" --include=\"package.json\" .`\n\n## Step 2: Remove deprecated options\n\n### Removed from Core (affects both RUM and Logs)\n\n| Option                      | Action                                               |\n| --------------------------- | ---------------------------------------------------- |\n| `useCrossSiteSessionCookie` | Replace with `usePartitionedCrossSiteSessionCookie`. |\n\n### Removed from Logs\n\n| Option                           | Action                                                                                                               |\n| -------------------------------- | -------------------------------------------------------------------------------------------------------------------- |\n| `sendLogsAfterSessionExpiration` | Delete. In v6, logs are always sent after session expiration (without a session ID). The option is no longer needed. |\n\nSearch: `grep -rn 'useCrossSiteSessionCookie\\|sendLogsAfterSessionExpiration' --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\" --include=\"*.html\" --include=\"*.vue\" --include=\"*.svelte\"`\n\n## Step 3: Update changed defaults\n\nv6 changes several default behaviors. Review each and adjust if needed:\n\n### 3a. `trackUserInteractions`, `trackResources`, and `trackLongTasks` default to `true`\n\nIn v5, these were `false` by default. In v6, they are enabled out of the box. This does not impact billing.\n\nTo preserve v5 behavior, explicitly disable **only the options that were not already enabled in v5**. If an option was already `true` in v5, leave it unchanged:\n\n```js\nDD_RUM.init({\n  trackUserInteractions: false, \u002F\u002F only if not already true in v5\n  trackResources: false, \u002F\u002F only if not already true in v5\n  trackLongTasks: false, \u002F\u002F only if not already true in v5\n})\n```\n\n### 3b. `traceContextInjection` defaults to `\"sampled\"`\n\nIn v5, trace context was injected for all requests. In v6, it's only injected for sampled traces. If your `traceSampleRate` is 100% (the default), this has no impact.\n\nTo preserve v5 behavior:\n\n```js\nDD_RUM.init({\n  traceContextInjection: 'all',\n})\n```\n\n### 3c. `tracestate` header added with `tracecontext` propagator\n\nThe `tracecontext` propagator now sends an additional `tracestate` header. Your server must accept it. Add it to your existing `Access-Control-Allow-Headers` — do not replace the full list:\n\n```\n# Add tracestate alongside your existing headers\nAccess-Control-Allow-Headers: \u003Cexisting-headers>, traceparent, tracestate\n```\n\n### 3d. `site` parameter is strongly typed\n\nThe `site` option has a stricter TypeScript type. If you pass a non-standard value, you get a type error. Use `proxy` for non-standard intake URLs instead.\n\nSearch: `grep -rn 'trackUserInteractions\\|trackResources\\|trackLongTasks\\|traceContextInjection\\|tracestate\\|allowedTracingUrls\\|propagatorTypes' --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\" --include=\"*.html\" --include=\"*.vue\" --include=\"*.svelte\"`\n\nAlso 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.\n\n## Step 4: Handle Session Replay lazy loading\n\nSession Replay is now lazy-loaded using dynamic imports. The module loads only for sessions sampled for replay, reducing bundle size for others.\n\n### npm setup\n\nEnsure your bundler supports dynamic imports (code splitting). Most modern bundlers do:\n\n- **Webpack**: [Code splitting docs](https:\u002F\u002Fwebpack.js.org\u002Fguides\u002Fcode-splitting\u002F#dynamic-imports)\n- **Esbuild**: [Splitting option](https:\u002F\u002Fesbuild.github.io\u002Fapi\u002F#splitting)\n- **Rollup**: [Code splitting docs](https:\u002F\u002Frollupjs.org\u002Ftutorial\u002F#code-splitting)\n- **Parcel**: [Code splitting docs](https:\u002F\u002Fparceljs.org\u002Ffeatures\u002Fcode-splitting)\n\n### CDN setup\n\nNo code changes needed. The SDK dynamically loads an additional chunk when recording (e.g., `datadogRecorder-\u003Chash>-datadog-rum.js`). Update CSP `script-src` rules if needed to allow the chunk.\n\n## Step 5: Review behavioral changes (no code required, but may need attention)\n\n| Change                                       | Impact                                                                                                             | Action if needed                                                        |\n| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |\n| IE11 support dropped                         | SDK built with ES2018 target. Polyfills removed.                                                                   | Keep using v5 if IE11 support is required.                              |\n| Long Animation Frames replace Long Tasks     | On supported browsers, Long Animation Frames are collected instead of Long Tasks. Event type is still `long_task`. | Review if you inspect long task event details.                          |\n| Session cookie expiration extended to 1 year | Supports anonymous user tracking.                                                                                  | Set `trackAnonymousUser: false` to opt out.                             |\n| `RegExp` and `Event` objects sanitized       | These are no longer serialized as-is in context\u002Fattributes.                                                        | Use string representations if you were passing RegExp or Event objects. |\n| Webpack `ChunkLoadError` no longer collected | Reduces noise from SDK chunk loading failures.                                                                     | No action needed.                                                       |\n\n## Step 6: Update infrastructure\n\n- **Browser support**: ES2018 baseline. IE11 is no longer supported.\n- **CORS**: Add `tracestate` to your existing `Access-Control-Allow-Headers` if using the `tracecontext` propagator (do not replace the full list): `Access-Control-Allow-Headers: \u003Cexisting-headers>, traceparent, tracestate`\n- **CSP**: Allow the dynamically loaded Session Replay chunk (e.g., `datadogRecorder-*-datadog-rum.js`) in `script-src` rules.\n- **Bundler config**: Ensure your bundler supports dynamic imports for Session Replay lazy loading.\n\n## Common Mistakes\n\n| Mistake                                                                           | What goes wrong                                                                                           | Fix                                                                                                                |\n| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |\n| Defensively disabling `trackUserInteractions`, `trackResources`, `trackLongTasks` | Disables features the project needs — these now default to `true`, which is usually the desired behavior  | Only set these to `false` if the project explicitly did not want them; leave them unset to accept the new defaults |\n| Missing `tracestate` in `Access-Control-Allow-Headers`                            | The `tracecontext` propagator now sends a `tracestate` header — cross-origin requests are blocked by CORS | Add `tracestate` alongside `traceparent` in your server's `Access-Control-Allow-Headers`                           |\n| Not updating CSP `script-src` for the lazy-loaded Session Replay chunk            | Recording silently fails on CSP-restricted pages — the dynamic chunk is blocked                           | Allow `datadogRecorder-*-datadog-rum.js` in `script-src`                                                           |\n\n## Verification checklist\n\nAfter upgrading, confirm:\n\n- [ ] SDK loads without console errors\n- [ ] No references to removed options (`useCrossSiteSessionCookie`, `sendLogsAfterSessionExpiration`)\n- [ ] Session Replay recordings working (if used)\n- [ ] Distributed tracing working (no CORS errors from `tracestate` header)\n- [ ] Bundle size decreased (IE11 polyfills removed)\n- [ ] Long tasks still collected (now as Long Animation Frames on supported browsers)\n- [ ] No TypeScript errors from `site` parameter typing\n",{"data":37,"body":41},{"name":4,"description":6,"metadata":38},{"version":39,"author":8,"repository":26,"tags":40},"1.0.0","datadog,browser-sdk,rum,logs,migration,v6,upgrade",{"type":42,"children":43},"root",[44,53,59,66,86,177,249,260,278,290,310,322,332,338,345,391,397,434,444,450,455,490,503,522,660,680,693,698,772,794,821,830,844,863,873,919,925,930,935,940,1010,1015,1036,1042,1196,1202,1287,1293,1468,1474,1479,1578],{"type":45,"tag":46,"props":47,"children":49},"element","h1",{"id":48},"upgrade-datadog-browser-sdk-to-v6",[50],{"type":51,"value":52},"text","Upgrade Datadog Browser SDK to v6",{"type":45,"tag":54,"props":55,"children":56},"p",{},[57],{"type":51,"value":58},"Systematic migration guide from v5 to v6. Follow steps 1-6 in order. Each step includes a search pattern to find affected code.",{"type":45,"tag":60,"props":61,"children":63},"h2",{"id":62},"step-1-update-sdk-version",[64],{"type":51,"value":65},"Step 1: Update SDK version",{"type":45,"tag":54,"props":67,"children":68},{},[69,75,77,84],{"type":45,"tag":70,"props":71,"children":72},"strong",{},[73],{"type":51,"value":74},"CDN setup",{"type":51,"value":76}," — update script ",{"type":45,"tag":78,"props":79,"children":81},"code",{"className":80},[],[82],{"type":51,"value":83},"src",{"type":51,"value":85}," URLs:",{"type":45,"tag":87,"props":88,"children":89},"table",{},[90,109],{"type":45,"tag":91,"props":92,"children":93},"thead",{},[94],{"type":45,"tag":95,"props":96,"children":97},"tr",{},[98,104],{"type":45,"tag":99,"props":100,"children":101},"th",{},[102],{"type":51,"value":103},"v5 pattern",{"type":45,"tag":99,"props":105,"children":106},{},[107],{"type":51,"value":108},"v6 replacement",{"type":45,"tag":110,"props":111,"children":112},"tbody",{},[113,135,156],{"type":45,"tag":95,"props":114,"children":115},{},[116,126],{"type":45,"tag":117,"props":118,"children":119},"td",{},[120],{"type":45,"tag":78,"props":121,"children":123},{"className":122},[],[124],{"type":51,"value":125},"datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-rum.js",{"type":45,"tag":117,"props":127,"children":128},{},[129],{"type":45,"tag":78,"props":130,"children":132},{"className":131},[],[133],{"type":51,"value":134},"datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-rum.js",{"type":45,"tag":95,"props":136,"children":137},{},[138,147],{"type":45,"tag":117,"props":139,"children":140},{},[141],{"type":45,"tag":78,"props":142,"children":144},{"className":143},[],[145],{"type":51,"value":146},"datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-logs.js",{"type":45,"tag":117,"props":148,"children":149},{},[150],{"type":45,"tag":78,"props":151,"children":153},{"className":152},[],[154],{"type":51,"value":155},"datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-logs.js",{"type":45,"tag":95,"props":157,"children":158},{},[159,168],{"type":45,"tag":117,"props":160,"children":161},{},[162],{"type":45,"tag":78,"props":163,"children":165},{"className":164},[],[166],{"type":51,"value":167},"datadoghq-browser-agent.com\u002Fus1\u002Fv5\u002Fdatadog-rum-slim.js",{"type":45,"tag":117,"props":169,"children":170},{},[171],{"type":45,"tag":78,"props":172,"children":174},{"className":173},[],[175],{"type":51,"value":176},"datadoghq-browser-agent.com\u002Fus1\u002Fv6\u002Fdatadog-rum-slim.js",{"type":45,"tag":54,"props":178,"children":179},{},[180,182,188,190,196,198,204,205,211,212,218,219,225,227,233,234,240,241,247],{"type":51,"value":181},"Replace ",{"type":45,"tag":78,"props":183,"children":185},{"className":184},[],[186],{"type":51,"value":187},"us1",{"type":51,"value":189}," with your site: ",{"type":45,"tag":78,"props":191,"children":193},{"className":192},[],[194],{"type":51,"value":195},"eu1",{"type":51,"value":197},", ",{"type":45,"tag":78,"props":199,"children":201},{"className":200},[],[202],{"type":51,"value":203},"us3",{"type":51,"value":197},{"type":45,"tag":78,"props":206,"children":208},{"className":207},[],[209],{"type":51,"value":210},"us5",{"type":51,"value":197},{"type":45,"tag":78,"props":213,"children":215},{"className":214},[],[216],{"type":51,"value":217},"ap1",{"type":51,"value":197},{"type":45,"tag":78,"props":220,"children":222},{"className":221},[],[223],{"type":51,"value":224},"ap2",{"type":51,"value":226},". For US1-FED, the pattern is flat with no site prefix: ",{"type":45,"tag":78,"props":228,"children":230},{"className":229},[],[231],{"type":51,"value":232},"datadog-rum-v6.js",{"type":51,"value":197},{"type":45,"tag":78,"props":235,"children":237},{"className":236},[],[238],{"type":51,"value":239},"datadog-logs-v6.js",{"type":51,"value":197},{"type":45,"tag":78,"props":242,"children":244},{"className":243},[],[245],{"type":51,"value":246},"datadog-rum-slim-v6.js",{"type":51,"value":248},".",{"type":45,"tag":54,"props":250,"children":251},{},[252,254],{"type":51,"value":253},"Search: ",{"type":45,"tag":78,"props":255,"children":257},{"className":256},[],[258],{"type":51,"value":259},"grep -r \"datadoghq-browser-agent.com.*v5\" --include=\"*.html\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\"",{"type":45,"tag":54,"props":261,"children":262},{},[263,268,270,276],{"type":45,"tag":70,"props":264,"children":265},{},[266],{"type":51,"value":267},"npm setup",{"type":51,"value":269}," — update ",{"type":45,"tag":78,"props":271,"children":273},{"className":272},[],[274],{"type":51,"value":275},"package.json",{"type":51,"value":277}," dependencies:",{"type":45,"tag":279,"props":280,"children":284},"pre",{"className":281,"code":283,"language":51},[282],"language-text","\"@datadog\u002Fbrowser-rum\": \"^6.0.0\"\n\"@datadog\u002Fbrowser-logs\": \"^6.0.0\"\n\"@datadog\u002Fbrowser-rum-slim\": \"^6.0.0\"\n",[285],{"type":45,"tag":78,"props":286,"children":288},{"__ignoreMap":287},"",[289],{"type":51,"value":283},{"type":45,"tag":54,"props":291,"children":292},{},[293,295,301,302,308],{"type":51,"value":294},"Then run your package manager (",{"type":45,"tag":78,"props":296,"children":298},{"className":297},[],[299],{"type":51,"value":300},"npm install",{"type":51,"value":197},{"type":45,"tag":78,"props":303,"children":305},{"className":304},[],[306],{"type":51,"value":307},"yarn install",{"type":51,"value":309},", etc.) and rebuild.",{"type":45,"tag":54,"props":311,"children":312},{},[313,315,321],{"type":51,"value":314},"Also upgrade framework integrations to v6 if used: ",{"type":45,"tag":78,"props":316,"children":318},{"className":317},[],[319],{"type":51,"value":320},"@datadog\u002Fbrowser-rum-react",{"type":51,"value":248},{"type":45,"tag":54,"props":323,"children":324},{},[325,326],{"type":51,"value":253},{"type":45,"tag":78,"props":327,"children":329},{"className":328},[],[330],{"type":51,"value":331},"grep -r \"@datadog\u002Fbrowser-\" --include=\"package.json\" .",{"type":45,"tag":60,"props":333,"children":335},{"id":334},"step-2-remove-deprecated-options",[336],{"type":51,"value":337},"Step 2: Remove deprecated options",{"type":45,"tag":339,"props":340,"children":342},"h3",{"id":341},"removed-from-core-affects-both-rum-and-logs",[343],{"type":51,"value":344},"Removed from Core (affects both RUM and Logs)",{"type":45,"tag":87,"props":346,"children":347},{},[348,364],{"type":45,"tag":91,"props":349,"children":350},{},[351],{"type":45,"tag":95,"props":352,"children":353},{},[354,359],{"type":45,"tag":99,"props":355,"children":356},{},[357],{"type":51,"value":358},"Option",{"type":45,"tag":99,"props":360,"children":361},{},[362],{"type":51,"value":363},"Action",{"type":45,"tag":110,"props":365,"children":366},{},[367],{"type":45,"tag":95,"props":368,"children":369},{},[370,379],{"type":45,"tag":117,"props":371,"children":372},{},[373],{"type":45,"tag":78,"props":374,"children":376},{"className":375},[],[377],{"type":51,"value":378},"useCrossSiteSessionCookie",{"type":45,"tag":117,"props":380,"children":381},{},[382,384,390],{"type":51,"value":383},"Replace with ",{"type":45,"tag":78,"props":385,"children":387},{"className":386},[],[388],{"type":51,"value":389},"usePartitionedCrossSiteSessionCookie",{"type":51,"value":248},{"type":45,"tag":339,"props":392,"children":394},{"id":393},"removed-from-logs",[395],{"type":51,"value":396},"Removed from Logs",{"type":45,"tag":87,"props":398,"children":399},{},[400,414],{"type":45,"tag":91,"props":401,"children":402},{},[403],{"type":45,"tag":95,"props":404,"children":405},{},[406,410],{"type":45,"tag":99,"props":407,"children":408},{},[409],{"type":51,"value":358},{"type":45,"tag":99,"props":411,"children":412},{},[413],{"type":51,"value":363},{"type":45,"tag":110,"props":415,"children":416},{},[417],{"type":45,"tag":95,"props":418,"children":419},{},[420,429],{"type":45,"tag":117,"props":421,"children":422},{},[423],{"type":45,"tag":78,"props":424,"children":426},{"className":425},[],[427],{"type":51,"value":428},"sendLogsAfterSessionExpiration",{"type":45,"tag":117,"props":430,"children":431},{},[432],{"type":51,"value":433},"Delete. In v6, logs are always sent after session expiration (without a session ID). The option is no longer needed.",{"type":45,"tag":54,"props":435,"children":436},{},[437,438],{"type":51,"value":253},{"type":45,"tag":78,"props":439,"children":441},{"className":440},[],[442],{"type":51,"value":443},"grep -rn 'useCrossSiteSessionCookie\\|sendLogsAfterSessionExpiration' --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\" --include=\"*.html\" --include=\"*.vue\" --include=\"*.svelte\"",{"type":45,"tag":60,"props":445,"children":447},{"id":446},"step-3-update-changed-defaults",[448],{"type":51,"value":449},"Step 3: Update changed defaults",{"type":45,"tag":54,"props":451,"children":452},{},[453],{"type":51,"value":454},"v6 changes several default behaviors. Review each and adjust if needed:",{"type":45,"tag":339,"props":456,"children":458},{"id":457},"_3a-trackuserinteractions-trackresources-and-tracklongtasks-default-to-true",[459,461,467,468,474,476,482,484],{"type":51,"value":460},"3a. ",{"type":45,"tag":78,"props":462,"children":464},{"className":463},[],[465],{"type":51,"value":466},"trackUserInteractions",{"type":51,"value":197},{"type":45,"tag":78,"props":469,"children":471},{"className":470},[],[472],{"type":51,"value":473},"trackResources",{"type":51,"value":475},", and ",{"type":45,"tag":78,"props":477,"children":479},{"className":478},[],[480],{"type":51,"value":481},"trackLongTasks",{"type":51,"value":483}," default to ",{"type":45,"tag":78,"props":485,"children":487},{"className":486},[],[488],{"type":51,"value":489},"true",{"type":45,"tag":54,"props":491,"children":492},{},[493,495,501],{"type":51,"value":494},"In v5, these were ",{"type":45,"tag":78,"props":496,"children":498},{"className":497},[],[499],{"type":51,"value":500},"false",{"type":51,"value":502}," by default. In v6, they are enabled out of the box. This does not impact billing.",{"type":45,"tag":54,"props":504,"children":505},{},[506,508,513,515,520],{"type":51,"value":507},"To preserve v5 behavior, explicitly disable ",{"type":45,"tag":70,"props":509,"children":510},{},[511],{"type":51,"value":512},"only the options that were not already enabled in v5",{"type":51,"value":514},". If an option was already ",{"type":45,"tag":78,"props":516,"children":518},{"className":517},[],[519],{"type":51,"value":489},{"type":51,"value":521}," in v5, leave it unchanged:",{"type":45,"tag":279,"props":523,"children":527},{"className":524,"code":525,"language":526,"meta":287,"style":287},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","DD_RUM.init({\n  trackUserInteractions: false, \u002F\u002F only if not already true in v5\n  trackResources: false, \u002F\u002F only if not already true in v5\n  trackLongTasks: false, \u002F\u002F only if not already true in v5\n})\n","js",[528],{"type":45,"tag":78,"props":529,"children":530},{"__ignoreMap":287},[531,564,596,621,646],{"type":45,"tag":532,"props":533,"children":536},"span",{"class":534,"line":535},"line",1,[537,543,548,554,559],{"type":45,"tag":532,"props":538,"children":540},{"style":539},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[541],{"type":51,"value":542},"DD_RUM",{"type":45,"tag":532,"props":544,"children":546},{"style":545},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[547],{"type":51,"value":248},{"type":45,"tag":532,"props":549,"children":551},{"style":550},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[552],{"type":51,"value":553},"init",{"type":45,"tag":532,"props":555,"children":556},{"style":539},[557],{"type":51,"value":558},"(",{"type":45,"tag":532,"props":560,"children":561},{"style":545},[562],{"type":51,"value":563},"{\n",{"type":45,"tag":532,"props":565,"children":567},{"class":534,"line":566},2,[568,574,579,585,590],{"type":45,"tag":532,"props":569,"children":571},{"style":570},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[572],{"type":51,"value":573},"  trackUserInteractions",{"type":45,"tag":532,"props":575,"children":576},{"style":545},[577],{"type":51,"value":578},":",{"type":45,"tag":532,"props":580,"children":582},{"style":581},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[583],{"type":51,"value":584}," false",{"type":45,"tag":532,"props":586,"children":587},{"style":545},[588],{"type":51,"value":589},",",{"type":45,"tag":532,"props":591,"children":593},{"style":592},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[594],{"type":51,"value":595}," \u002F\u002F only if not already true in v5\n",{"type":45,"tag":532,"props":597,"children":599},{"class":534,"line":598},3,[600,605,609,613,617],{"type":45,"tag":532,"props":601,"children":602},{"style":570},[603],{"type":51,"value":604},"  trackResources",{"type":45,"tag":532,"props":606,"children":607},{"style":545},[608],{"type":51,"value":578},{"type":45,"tag":532,"props":610,"children":611},{"style":581},[612],{"type":51,"value":584},{"type":45,"tag":532,"props":614,"children":615},{"style":545},[616],{"type":51,"value":589},{"type":45,"tag":532,"props":618,"children":619},{"style":592},[620],{"type":51,"value":595},{"type":45,"tag":532,"props":622,"children":624},{"class":534,"line":623},4,[625,630,634,638,642],{"type":45,"tag":532,"props":626,"children":627},{"style":570},[628],{"type":51,"value":629},"  trackLongTasks",{"type":45,"tag":532,"props":631,"children":632},{"style":545},[633],{"type":51,"value":578},{"type":45,"tag":532,"props":635,"children":636},{"style":581},[637],{"type":51,"value":584},{"type":45,"tag":532,"props":639,"children":640},{"style":545},[641],{"type":51,"value":589},{"type":45,"tag":532,"props":643,"children":644},{"style":592},[645],{"type":51,"value":595},{"type":45,"tag":532,"props":647,"children":649},{"class":534,"line":648},5,[650,655],{"type":45,"tag":532,"props":651,"children":652},{"style":545},[653],{"type":51,"value":654},"}",{"type":45,"tag":532,"props":656,"children":657},{"style":539},[658],{"type":51,"value":659},")\n",{"type":45,"tag":339,"props":661,"children":663},{"id":662},"_3b-tracecontextinjection-defaults-to-sampled",[664,666,672,674],{"type":51,"value":665},"3b. ",{"type":45,"tag":78,"props":667,"children":669},{"className":668},[],[670],{"type":51,"value":671},"traceContextInjection",{"type":51,"value":673}," defaults to ",{"type":45,"tag":78,"props":675,"children":677},{"className":676},[],[678],{"type":51,"value":679},"\"sampled\"",{"type":45,"tag":54,"props":681,"children":682},{},[683,685,691],{"type":51,"value":684},"In v5, trace context was injected for all requests. In v6, it's only injected for sampled traces. If your ",{"type":45,"tag":78,"props":686,"children":688},{"className":687},[],[689],{"type":51,"value":690},"traceSampleRate",{"type":51,"value":692}," is 100% (the default), this has no impact.",{"type":45,"tag":54,"props":694,"children":695},{},[696],{"type":51,"value":697},"To preserve v5 behavior:",{"type":45,"tag":279,"props":699,"children":701},{"className":524,"code":700,"language":526,"meta":287,"style":287},"DD_RUM.init({\n  traceContextInjection: 'all',\n})\n",[702],{"type":45,"tag":78,"props":703,"children":704},{"__ignoreMap":287},[705,728,761],{"type":45,"tag":532,"props":706,"children":707},{"class":534,"line":535},[708,712,716,720,724],{"type":45,"tag":532,"props":709,"children":710},{"style":539},[711],{"type":51,"value":542},{"type":45,"tag":532,"props":713,"children":714},{"style":545},[715],{"type":51,"value":248},{"type":45,"tag":532,"props":717,"children":718},{"style":550},[719],{"type":51,"value":553},{"type":45,"tag":532,"props":721,"children":722},{"style":539},[723],{"type":51,"value":558},{"type":45,"tag":532,"props":725,"children":726},{"style":545},[727],{"type":51,"value":563},{"type":45,"tag":532,"props":729,"children":730},{"class":534,"line":566},[731,736,740,745,751,756],{"type":45,"tag":532,"props":732,"children":733},{"style":570},[734],{"type":51,"value":735},"  traceContextInjection",{"type":45,"tag":532,"props":737,"children":738},{"style":545},[739],{"type":51,"value":578},{"type":45,"tag":532,"props":741,"children":742},{"style":545},[743],{"type":51,"value":744}," '",{"type":45,"tag":532,"props":746,"children":748},{"style":747},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[749],{"type":51,"value":750},"all",{"type":45,"tag":532,"props":752,"children":753},{"style":545},[754],{"type":51,"value":755},"'",{"type":45,"tag":532,"props":757,"children":758},{"style":545},[759],{"type":51,"value":760},",\n",{"type":45,"tag":532,"props":762,"children":763},{"class":534,"line":598},[764,768],{"type":45,"tag":532,"props":765,"children":766},{"style":545},[767],{"type":51,"value":654},{"type":45,"tag":532,"props":769,"children":770},{"style":539},[771],{"type":51,"value":659},{"type":45,"tag":339,"props":773,"children":775},{"id":774},"_3c-tracestate-header-added-with-tracecontext-propagator",[776,778,784,786,792],{"type":51,"value":777},"3c. ",{"type":45,"tag":78,"props":779,"children":781},{"className":780},[],[782],{"type":51,"value":783},"tracestate",{"type":51,"value":785}," header added with ",{"type":45,"tag":78,"props":787,"children":789},{"className":788},[],[790],{"type":51,"value":791},"tracecontext",{"type":51,"value":793}," propagator",{"type":45,"tag":54,"props":795,"children":796},{},[797,799,804,806,811,813,819],{"type":51,"value":798},"The ",{"type":45,"tag":78,"props":800,"children":802},{"className":801},[],[803],{"type":51,"value":791},{"type":51,"value":805}," propagator now sends an additional ",{"type":45,"tag":78,"props":807,"children":809},{"className":808},[],[810],{"type":51,"value":783},{"type":51,"value":812}," header. Your server must accept it. Add it to your existing ",{"type":45,"tag":78,"props":814,"children":816},{"className":815},[],[817],{"type":51,"value":818},"Access-Control-Allow-Headers",{"type":51,"value":820}," — do not replace the full list:",{"type":45,"tag":279,"props":822,"children":825},{"className":823,"code":824,"language":51},[282],"# Add tracestate alongside your existing headers\nAccess-Control-Allow-Headers: \u003Cexisting-headers>, traceparent, tracestate\n",[826],{"type":45,"tag":78,"props":827,"children":828},{"__ignoreMap":287},[829],{"type":51,"value":824},{"type":45,"tag":339,"props":831,"children":833},{"id":832},"_3d-site-parameter-is-strongly-typed",[834,836,842],{"type":51,"value":835},"3d. ",{"type":45,"tag":78,"props":837,"children":839},{"className":838},[],[840],{"type":51,"value":841},"site",{"type":51,"value":843}," parameter is strongly typed",{"type":45,"tag":54,"props":845,"children":846},{},[847,848,853,855,861],{"type":51,"value":798},{"type":45,"tag":78,"props":849,"children":851},{"className":850},[],[852],{"type":51,"value":841},{"type":51,"value":854}," option has a stricter TypeScript type. If you pass a non-standard value, you get a type error. Use ",{"type":45,"tag":78,"props":856,"children":858},{"className":857},[],[859],{"type":51,"value":860},"proxy",{"type":51,"value":862}," for non-standard intake URLs instead.",{"type":45,"tag":54,"props":864,"children":865},{},[866,867],{"type":51,"value":253},{"type":45,"tag":78,"props":868,"children":870},{"className":869},[],[871],{"type":51,"value":872},"grep -rn 'trackUserInteractions\\|trackResources\\|trackLongTasks\\|traceContextInjection\\|tracestate\\|allowedTracingUrls\\|propagatorTypes' --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\" --include=\"*.html\" --include=\"*.vue\" --include=\"*.svelte\"",{"type":45,"tag":54,"props":874,"children":875},{},[876,878,883,885,891,893,898,899,904,905,910,912,917],{"type":51,"value":877},"Also search for all RUM init calls to catch projects that omit these options and relied on the v5 ",{"type":45,"tag":78,"props":879,"children":881},{"className":880},[],[882],{"type":51,"value":500},{"type":51,"value":884}," defaults: ",{"type":45,"tag":78,"props":886,"children":888},{"className":887},[],[889],{"type":51,"value":890},"grep -rn 'DD_RUM\\.init\\|datadogRum\\.init' --include=\"*.js\" --include=\"*.ts\" --include=\"*.tsx\" --include=\"*.jsx\" --include=\"*.html\" --include=\"*.vue\" --include=\"*.svelte\"",{"type":51,"value":892},". For each init call, check whether ",{"type":45,"tag":78,"props":894,"children":896},{"className":895},[],[897],{"type":51,"value":466},{"type":51,"value":197},{"type":45,"tag":78,"props":900,"children":902},{"className":901},[],[903],{"type":51,"value":473},{"type":51,"value":475},{"type":45,"tag":78,"props":906,"children":908},{"className":907},[],[909],{"type":51,"value":481},{"type":51,"value":911}," are explicitly set — if omitted, they now default to ",{"type":45,"tag":78,"props":913,"children":915},{"className":914},[],[916],{"type":51,"value":489},{"type":51,"value":918}," in v6.",{"type":45,"tag":60,"props":920,"children":922},{"id":921},"step-4-handle-session-replay-lazy-loading",[923],{"type":51,"value":924},"Step 4: Handle Session Replay lazy loading",{"type":45,"tag":54,"props":926,"children":927},{},[928],{"type":51,"value":929},"Session Replay is now lazy-loaded using dynamic imports. The module loads only for sessions sampled for replay, reducing bundle size for others.",{"type":45,"tag":339,"props":931,"children":933},{"id":932},"npm-setup",[934],{"type":51,"value":267},{"type":45,"tag":54,"props":936,"children":937},{},[938],{"type":51,"value":939},"Ensure your bundler supports dynamic imports (code splitting). Most modern bundlers do:",{"type":45,"tag":941,"props":942,"children":943},"ul",{},[944,964,980,995],{"type":45,"tag":945,"props":946,"children":947},"li",{},[948,953,955],{"type":45,"tag":70,"props":949,"children":950},{},[951],{"type":51,"value":952},"Webpack",{"type":51,"value":954},": ",{"type":45,"tag":956,"props":957,"children":961},"a",{"href":958,"rel":959},"https:\u002F\u002Fwebpack.js.org\u002Fguides\u002Fcode-splitting\u002F#dynamic-imports",[960],"nofollow",[962],{"type":51,"value":963},"Code splitting docs",{"type":45,"tag":945,"props":965,"children":966},{},[967,972,973],{"type":45,"tag":70,"props":968,"children":969},{},[970],{"type":51,"value":971},"Esbuild",{"type":51,"value":954},{"type":45,"tag":956,"props":974,"children":977},{"href":975,"rel":976},"https:\u002F\u002Fesbuild.github.io\u002Fapi\u002F#splitting",[960],[978],{"type":51,"value":979},"Splitting option",{"type":45,"tag":945,"props":981,"children":982},{},[983,988,989],{"type":45,"tag":70,"props":984,"children":985},{},[986],{"type":51,"value":987},"Rollup",{"type":51,"value":954},{"type":45,"tag":956,"props":990,"children":993},{"href":991,"rel":992},"https:\u002F\u002Frollupjs.org\u002Ftutorial\u002F#code-splitting",[960],[994],{"type":51,"value":963},{"type":45,"tag":945,"props":996,"children":997},{},[998,1003,1004],{"type":45,"tag":70,"props":999,"children":1000},{},[1001],{"type":51,"value":1002},"Parcel",{"type":51,"value":954},{"type":45,"tag":956,"props":1005,"children":1008},{"href":1006,"rel":1007},"https:\u002F\u002Fparceljs.org\u002Ffeatures\u002Fcode-splitting",[960],[1009],{"type":51,"value":963},{"type":45,"tag":339,"props":1011,"children":1013},{"id":1012},"cdn-setup",[1014],{"type":51,"value":74},{"type":45,"tag":54,"props":1016,"children":1017},{},[1018,1020,1026,1028,1034],{"type":51,"value":1019},"No code changes needed. The SDK dynamically loads an additional chunk when recording (e.g., ",{"type":45,"tag":78,"props":1021,"children":1023},{"className":1022},[],[1024],{"type":51,"value":1025},"datadogRecorder-\u003Chash>-datadog-rum.js",{"type":51,"value":1027},"). Update CSP ",{"type":45,"tag":78,"props":1029,"children":1031},{"className":1030},[],[1032],{"type":51,"value":1033},"script-src",{"type":51,"value":1035}," rules if needed to allow the chunk.",{"type":45,"tag":60,"props":1037,"children":1039},{"id":1038},"step-5-review-behavioral-changes-no-code-required-but-may-need-attention",[1040],{"type":51,"value":1041},"Step 5: Review behavioral changes (no code required, but may need attention)",{"type":45,"tag":87,"props":1043,"children":1044},{},[1045,1066],{"type":45,"tag":91,"props":1046,"children":1047},{},[1048],{"type":45,"tag":95,"props":1049,"children":1050},{},[1051,1056,1061],{"type":45,"tag":99,"props":1052,"children":1053},{},[1054],{"type":51,"value":1055},"Change",{"type":45,"tag":99,"props":1057,"children":1058},{},[1059],{"type":51,"value":1060},"Impact",{"type":45,"tag":99,"props":1062,"children":1063},{},[1064],{"type":51,"value":1065},"Action if needed",{"type":45,"tag":110,"props":1067,"children":1068},{},[1069,1087,1112,1138,1170],{"type":45,"tag":95,"props":1070,"children":1071},{},[1072,1077,1082],{"type":45,"tag":117,"props":1073,"children":1074},{},[1075],{"type":51,"value":1076},"IE11 support dropped",{"type":45,"tag":117,"props":1078,"children":1079},{},[1080],{"type":51,"value":1081},"SDK built with ES2018 target. Polyfills removed.",{"type":45,"tag":117,"props":1083,"children":1084},{},[1085],{"type":51,"value":1086},"Keep using v5 if IE11 support is required.",{"type":45,"tag":95,"props":1088,"children":1089},{},[1090,1095,1107],{"type":45,"tag":117,"props":1091,"children":1092},{},[1093],{"type":51,"value":1094},"Long Animation Frames replace Long Tasks",{"type":45,"tag":117,"props":1096,"children":1097},{},[1098,1100,1106],{"type":51,"value":1099},"On supported browsers, Long Animation Frames are collected instead of Long Tasks. Event type is still ",{"type":45,"tag":78,"props":1101,"children":1103},{"className":1102},[],[1104],{"type":51,"value":1105},"long_task",{"type":51,"value":248},{"type":45,"tag":117,"props":1108,"children":1109},{},[1110],{"type":51,"value":1111},"Review if you inspect long task event details.",{"type":45,"tag":95,"props":1113,"children":1114},{},[1115,1120,1125],{"type":45,"tag":117,"props":1116,"children":1117},{},[1118],{"type":51,"value":1119},"Session cookie expiration extended to 1 year",{"type":45,"tag":117,"props":1121,"children":1122},{},[1123],{"type":51,"value":1124},"Supports anonymous user tracking.",{"type":45,"tag":117,"props":1126,"children":1127},{},[1128,1130,1136],{"type":51,"value":1129},"Set ",{"type":45,"tag":78,"props":1131,"children":1133},{"className":1132},[],[1134],{"type":51,"value":1135},"trackAnonymousUser: false",{"type":51,"value":1137}," to opt out.",{"type":45,"tag":95,"props":1139,"children":1140},{},[1141,1160,1165],{"type":45,"tag":117,"props":1142,"children":1143},{},[1144,1150,1152,1158],{"type":45,"tag":78,"props":1145,"children":1147},{"className":1146},[],[1148],{"type":51,"value":1149},"RegExp",{"type":51,"value":1151}," and ",{"type":45,"tag":78,"props":1153,"children":1155},{"className":1154},[],[1156],{"type":51,"value":1157},"Event",{"type":51,"value":1159}," objects sanitized",{"type":45,"tag":117,"props":1161,"children":1162},{},[1163],{"type":51,"value":1164},"These are no longer serialized as-is in context\u002Fattributes.",{"type":45,"tag":117,"props":1166,"children":1167},{},[1168],{"type":51,"value":1169},"Use string representations if you were passing RegExp or Event objects.",{"type":45,"tag":95,"props":1171,"children":1172},{},[1173,1186,1191],{"type":45,"tag":117,"props":1174,"children":1175},{},[1176,1178,1184],{"type":51,"value":1177},"Webpack ",{"type":45,"tag":78,"props":1179,"children":1181},{"className":1180},[],[1182],{"type":51,"value":1183},"ChunkLoadError",{"type":51,"value":1185}," no longer collected",{"type":45,"tag":117,"props":1187,"children":1188},{},[1189],{"type":51,"value":1190},"Reduces noise from SDK chunk loading failures.",{"type":45,"tag":117,"props":1192,"children":1193},{},[1194],{"type":51,"value":1195},"No action needed.",{"type":45,"tag":60,"props":1197,"children":1199},{"id":1198},"step-6-update-infrastructure",[1200],{"type":51,"value":1201},"Step 6: Update infrastructure",{"type":45,"tag":941,"props":1203,"children":1204},{},[1205,1215,1252,1277],{"type":45,"tag":945,"props":1206,"children":1207},{},[1208,1213],{"type":45,"tag":70,"props":1209,"children":1210},{},[1211],{"type":51,"value":1212},"Browser support",{"type":51,"value":1214},": ES2018 baseline. IE11 is no longer supported.",{"type":45,"tag":945,"props":1216,"children":1217},{},[1218,1223,1225,1230,1232,1237,1239,1244,1246],{"type":45,"tag":70,"props":1219,"children":1220},{},[1221],{"type":51,"value":1222},"CORS",{"type":51,"value":1224},": Add ",{"type":45,"tag":78,"props":1226,"children":1228},{"className":1227},[],[1229],{"type":51,"value":783},{"type":51,"value":1231}," to your existing ",{"type":45,"tag":78,"props":1233,"children":1235},{"className":1234},[],[1236],{"type":51,"value":818},{"type":51,"value":1238}," if using the ",{"type":45,"tag":78,"props":1240,"children":1242},{"className":1241},[],[1243],{"type":51,"value":791},{"type":51,"value":1245}," propagator (do not replace the full list): ",{"type":45,"tag":78,"props":1247,"children":1249},{"className":1248},[],[1250],{"type":51,"value":1251},"Access-Control-Allow-Headers: \u003Cexisting-headers>, traceparent, tracestate",{"type":45,"tag":945,"props":1253,"children":1254},{},[1255,1260,1262,1268,1270,1275],{"type":45,"tag":70,"props":1256,"children":1257},{},[1258],{"type":51,"value":1259},"CSP",{"type":51,"value":1261},": Allow the dynamically loaded Session Replay chunk (e.g., ",{"type":45,"tag":78,"props":1263,"children":1265},{"className":1264},[],[1266],{"type":51,"value":1267},"datadogRecorder-*-datadog-rum.js",{"type":51,"value":1269},") in ",{"type":45,"tag":78,"props":1271,"children":1273},{"className":1272},[],[1274],{"type":51,"value":1033},{"type":51,"value":1276}," rules.",{"type":45,"tag":945,"props":1278,"children":1279},{},[1280,1285],{"type":45,"tag":70,"props":1281,"children":1282},{},[1283],{"type":51,"value":1284},"Bundler config",{"type":51,"value":1286},": Ensure your bundler supports dynamic imports for Session Replay lazy loading.",{"type":45,"tag":60,"props":1288,"children":1290},{"id":1289},"common-mistakes",[1291],{"type":51,"value":1292},"Common Mistakes",{"type":45,"tag":87,"props":1294,"children":1295},{},[1296,1317],{"type":45,"tag":91,"props":1297,"children":1298},{},[1299],{"type":45,"tag":95,"props":1300,"children":1301},{},[1302,1307,1312],{"type":45,"tag":99,"props":1303,"children":1304},{},[1305],{"type":51,"value":1306},"Mistake",{"type":45,"tag":99,"props":1308,"children":1309},{},[1310],{"type":51,"value":1311},"What goes wrong",{"type":45,"tag":99,"props":1313,"children":1314},{},[1315],{"type":51,"value":1316},"Fix",{"type":45,"tag":110,"props":1318,"children":1319},{},[1320,1369,1432],{"type":45,"tag":95,"props":1321,"children":1322},{},[1323,1345,1357],{"type":45,"tag":117,"props":1324,"children":1325},{},[1326,1328,1333,1334,1339,1340],{"type":51,"value":1327},"Defensively disabling ",{"type":45,"tag":78,"props":1329,"children":1331},{"className":1330},[],[1332],{"type":51,"value":466},{"type":51,"value":197},{"type":45,"tag":78,"props":1335,"children":1337},{"className":1336},[],[1338],{"type":51,"value":473},{"type":51,"value":197},{"type":45,"tag":78,"props":1341,"children":1343},{"className":1342},[],[1344],{"type":51,"value":481},{"type":45,"tag":117,"props":1346,"children":1347},{},[1348,1350,1355],{"type":51,"value":1349},"Disables features the project needs — these now default to ",{"type":45,"tag":78,"props":1351,"children":1353},{"className":1352},[],[1354],{"type":51,"value":489},{"type":51,"value":1356},", which is usually the desired behavior",{"type":45,"tag":117,"props":1358,"children":1359},{},[1360,1362,1367],{"type":51,"value":1361},"Only set these to ",{"type":45,"tag":78,"props":1363,"children":1365},{"className":1364},[],[1366],{"type":51,"value":500},{"type":51,"value":1368}," if the project explicitly did not want them; leave them unset to accept the new defaults",{"type":45,"tag":95,"props":1370,"children":1371},{},[1372,1389,1407],{"type":45,"tag":117,"props":1373,"children":1374},{},[1375,1377,1382,1384],{"type":51,"value":1376},"Missing ",{"type":45,"tag":78,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":51,"value":783},{"type":51,"value":1383}," in ",{"type":45,"tag":78,"props":1385,"children":1387},{"className":1386},[],[1388],{"type":51,"value":818},{"type":45,"tag":117,"props":1390,"children":1391},{},[1392,1393,1398,1400,1405],{"type":51,"value":798},{"type":45,"tag":78,"props":1394,"children":1396},{"className":1395},[],[1397],{"type":51,"value":791},{"type":51,"value":1399}," propagator now sends a ",{"type":45,"tag":78,"props":1401,"children":1403},{"className":1402},[],[1404],{"type":51,"value":783},{"type":51,"value":1406}," header — cross-origin requests are blocked by CORS",{"type":45,"tag":117,"props":1408,"children":1409},{},[1410,1412,1417,1419,1425,1427],{"type":51,"value":1411},"Add ",{"type":45,"tag":78,"props":1413,"children":1415},{"className":1414},[],[1416],{"type":51,"value":783},{"type":51,"value":1418}," alongside ",{"type":45,"tag":78,"props":1420,"children":1422},{"className":1421},[],[1423],{"type":51,"value":1424},"traceparent",{"type":51,"value":1426}," in your server's ",{"type":45,"tag":78,"props":1428,"children":1430},{"className":1429},[],[1431],{"type":51,"value":818},{"type":45,"tag":95,"props":1433,"children":1434},{},[1435,1447,1452],{"type":45,"tag":117,"props":1436,"children":1437},{},[1438,1440,1445],{"type":51,"value":1439},"Not updating CSP ",{"type":45,"tag":78,"props":1441,"children":1443},{"className":1442},[],[1444],{"type":51,"value":1033},{"type":51,"value":1446}," for the lazy-loaded Session Replay chunk",{"type":45,"tag":117,"props":1448,"children":1449},{},[1450],{"type":51,"value":1451},"Recording silently fails on CSP-restricted pages — the dynamic chunk is blocked",{"type":45,"tag":117,"props":1453,"children":1454},{},[1455,1457,1462,1463],{"type":51,"value":1456},"Allow ",{"type":45,"tag":78,"props":1458,"children":1460},{"className":1459},[],[1461],{"type":51,"value":1267},{"type":51,"value":1383},{"type":45,"tag":78,"props":1464,"children":1466},{"className":1465},[],[1467],{"type":51,"value":1033},{"type":45,"tag":60,"props":1469,"children":1471},{"id":1470},"verification-checklist",[1472],{"type":51,"value":1473},"Verification checklist",{"type":45,"tag":54,"props":1475,"children":1476},{},[1477],{"type":51,"value":1478},"After upgrading, confirm:",{"type":45,"tag":941,"props":1480,"children":1483},{"className":1481},[1482],"contains-task-list",[1484,1497,1519,1528,1544,1553,1562],{"type":45,"tag":945,"props":1485,"children":1488},{"className":1486},[1487],"task-list-item",[1489,1495],{"type":45,"tag":1490,"props":1491,"children":1494},"input",{"disabled":1492,"type":1493},true,"checkbox",[],{"type":51,"value":1496}," SDK loads without console errors",{"type":45,"tag":945,"props":1498,"children":1500},{"className":1499},[1487],[1501,1504,1506,1511,1512,1517],{"type":45,"tag":1490,"props":1502,"children":1503},{"disabled":1492,"type":1493},[],{"type":51,"value":1505}," No references to removed options (",{"type":45,"tag":78,"props":1507,"children":1509},{"className":1508},[],[1510],{"type":51,"value":378},{"type":51,"value":197},{"type":45,"tag":78,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":51,"value":428},{"type":51,"value":1518},")",{"type":45,"tag":945,"props":1520,"children":1522},{"className":1521},[1487],[1523,1526],{"type":45,"tag":1490,"props":1524,"children":1525},{"disabled":1492,"type":1493},[],{"type":51,"value":1527}," Session Replay recordings working (if used)",{"type":45,"tag":945,"props":1529,"children":1531},{"className":1530},[1487],[1532,1535,1537,1542],{"type":45,"tag":1490,"props":1533,"children":1534},{"disabled":1492,"type":1493},[],{"type":51,"value":1536}," Distributed tracing working (no CORS errors from ",{"type":45,"tag":78,"props":1538,"children":1540},{"className":1539},[],[1541],{"type":51,"value":783},{"type":51,"value":1543}," header)",{"type":45,"tag":945,"props":1545,"children":1547},{"className":1546},[1487],[1548,1551],{"type":45,"tag":1490,"props":1549,"children":1550},{"disabled":1492,"type":1493},[],{"type":51,"value":1552}," Bundle size decreased (IE11 polyfills removed)",{"type":45,"tag":945,"props":1554,"children":1556},{"className":1555},[1487],[1557,1560],{"type":45,"tag":1490,"props":1558,"children":1559},{"disabled":1492,"type":1493},[],{"type":51,"value":1561}," Long tasks still collected (now as Long Animation Frames on supported browsers)",{"type":45,"tag":945,"props":1563,"children":1565},{"className":1564},[1487],[1566,1569,1571,1576],{"type":45,"tag":1490,"props":1567,"children":1568},{"disabled":1492,"type":1493},[],{"type":51,"value":1570}," No TypeScript errors from ",{"type":45,"tag":78,"props":1572,"children":1574},{"className":1573},[],[1575],{"type":51,"value":841},{"type":51,"value":1577}," parameter typing",{"type":45,"tag":1579,"props":1580,"children":1581},"style",{},[1582],{"type":51,"value":1583},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1585,"total":1759},[1586,1601,1617,1628,1644,1658,1674,1688,1700,1712,1724,1744],{"slug":1587,"name":1587,"fn":1588,"description":1589,"org":1590,"tags":1591,"stars":25,"repoUrl":26,"updatedAt":1600},"agent-install","install Datadog Agent on Kubernetes","Install the Datadog Agent on Kubernetes using the Datadog Operator — required before enabling Single Step Instrumentation (SSI), which automatically instruments applications for APM without code changes. Only use if no Datadog Agent is deployed on the cluster yet.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1592,1593,1596,1599],{"name":17,"slug":18,"type":15},{"name":1594,"slug":1595,"type":15},"Deployment","deployment",{"name":1597,"slug":1598,"type":15},"Kubernetes","kubernetes",{"name":13,"slug":14,"type":15},"2026-04-15T04:57:27.489805",{"slug":1602,"name":1602,"fn":1603,"description":1604,"org":1605,"tags":1606,"stars":25,"repoUrl":26,"updatedAt":1616},"agent-observability-auto-experiment","run iterative code improvements using Datadog data","Run an iterative code-improvement hill-climb against real Datadog LLM-Obs data, locally, with Claude Code as the agent. Establishes a baseline eval, makes one focused change, re-scores with the same harness, keeps the change if it improves the score in the goal's direction (labeling within-noise gains tentative), and repeats. Use when the user says \"run an auto experiment\", \"hill-climb this code\", \"iteratively improve X and measure the delta\", \"optimize this prompt\u002Ffile against my traces\", \"auto-optimize against LLM-Obs\", or wants the local equivalent of the auto_experiments worker. Works from a local dataset file, an ml_app, a dataset_id, or a list of trace_ids.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1607,1608,1609,1612,1615],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1610,"slug":1611,"type":15},"Evals","evals",{"name":1613,"slug":1614,"type":15},"LLM","llm",{"name":13,"slug":14,"type":15},"2026-07-31T05:52:13.711906",{"slug":1618,"name":1618,"fn":1619,"description":1620,"org":1621,"tags":1622,"stars":25,"repoUrl":26,"updatedAt":1627},"agent-observability-eval-bootstrap","bootstrap evaluators from production traces","Bootstrap evaluators from production traces — by default propose online LLM-judge evaluators and, after you confirm, create them in Datadog as disabled drafts (never auto-enabled); on request emit Python SDK code or a framework-agnostic JSON spec instead. Use when user says \"bootstrap evaluators\", \"generate evaluators\", \"create evals from traces\", \"eval bootstrap\", \"write evaluators\", \"build eval suite\", \"publish evaluators\", or wants to generate BaseEvaluator\u002FLLMJudge code or online judge configs from production LLM trace data. Works with ml_app and optional RCA report or failure hypothesis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1623,1624,1625,1626],{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:19.259734",{"slug":1629,"name":1629,"fn":1630,"description":1631,"org":1632,"tags":1633,"stars":25,"repoUrl":26,"updatedAt":1643},"agent-observability-eval-pipeline","run agent observability and evaluation pipelines","End-to-end Agent Observability pipeline for an instrumented ml_app — classify production traces, root-cause failures, bootstrap evaluators, then (optionally) sample + publish a dataset, generate + run an experiment, and analyze results. Six narrated phases with a standardized banner and a \"continue\" checkpoint between each. Pure orchestration over the agent-observability sub-skills (`agent-observability-session-classify`, `agent-observability-trace-rca`, `agent-observability-eval-bootstrap`, `agent-observability-experiment-py-bootstrap`, `agent-observability-experiment-analyzer`). Use when user says \"run the eval pipeline\", \"go from traces to evals\", \"bootstrap evals end to end\", \"classify then RCA then bootstrap\", \"build an eval set from scratch\", \"onboard me to datasets and experiments\", \"walk me through experiments\", \"I have an ml_app, now what\", \"Agent Observability onboarding\", \"guided experiment setup\", \"from traces to experiments\", or wants a deterministic, narrated tour from production data through evaluators, datasets, and experiments. Stop early with `--stop-after \u003Cphase>` to short-circuit at evaluators or dataset, or resume mid-flow with `--start-at \u003Cphase>`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1634,1637,1640,1641,1642],{"name":1635,"slug":1636,"type":15},"Agents","agents",{"name":1638,"slug":1639,"type":15},"Data Pipeline","data-pipeline",{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:17.231423",{"slug":1645,"name":1645,"fn":1646,"description":1647,"org":1648,"tags":1649,"stars":25,"repoUrl":26,"updatedAt":1657},"agent-observability-experiment-analyzer","analyze LLM experiment results","Analyze LLM experiment results. Handles single or comparative experiments, exploratory or Q&A modes. Use when user says \"analyze experiment\", \"compare experiments\", \"analyze against baseline\", or provides one or two experiment IDs for analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1650,1653,1654,1655,1656],{"name":1651,"slug":1652,"type":15},"Analytics","analytics",{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:21.212498",{"slug":1659,"name":1659,"fn":1660,"description":1661,"org":1662,"tags":1663,"stars":25,"repoUrl":26,"updatedAt":1673},"agent-observability-experiment-py-bootstrap","generate Python experiment clients for LLM observability","Generates a self-contained Python experiment client that uses the ddtrace.llmobs SDK. Emits either a runnable .py script or a Jupyter .ipynb notebook matching the canonical DataDog reference notebook style. Use when the user says \"generate Python experiment\", \"write an SDK experiment\", \"create a ddtrace experiment\", \"Python notebook experiment\", \"use the Agent Observability SDK\", or has `ddtrace` installed and wants idiomatic SDK code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1664,1665,1668,1669,1670],{"name":17,"slug":18,"type":15},{"name":1666,"slug":1667,"type":15},"Jupyter","jupyter",{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"name":1671,"slug":1672,"type":15},"Python","python","2026-06-19T09:04:22.640384",{"slug":1675,"name":1675,"fn":1676,"description":1677,"org":1678,"tags":1679,"stars":25,"repoUrl":26,"updatedAt":1687},"agent-observability-replay-trace","iterate on LLM traces with local code","Use when a developer wants to iterate on ONE specific Agent Observability \u002F LLM Obs trace whose output they didn't like — re-running that trace against their LOCAL code, seeing a concise diff of the old vs new output, and looping (change code → replay → diff) until satisfied. Invoked as \u002Fagent-observability-replay-trace \u003Ctrace-id> [changes to test]. Signals: \"replay this trace\"; \"iterate on a trace\"; \"this trace's output is wrong, fix it and re-run\"; \"re-run trace \u003Cid> with \u003Cchange>\"; pasting a trace id from the Agent Observability UI with a description of what to fix. It fetches the trace via the datadog-llmo MCP or the pup CLI, edits code, re-runs the app to emit a NEW trace, and diffs the two — no local server, no browser. For agents traced with ddtrace \u002F LLM Obs (Python first-class), with JSON-serializable entry input. Do NOT use for: scored Experiments or the browser \"Replay\" button (that's agent-observability-replay-experiment), building an experiment from a dataset\u002FCSV, writing evaluators, root-causing failed traces, or RUM\u002FHTTP session replay.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1680,1681,1682,1683,1684],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"name":1685,"slug":1686,"type":15},"Tracing","tracing","2026-07-31T05:52:08.594182",{"slug":1689,"name":1689,"fn":1690,"description":1691,"org":1692,"tags":1693,"stars":25,"repoUrl":26,"updatedAt":1699},"agent-observability-session-classify","evaluate user intent satisfaction in sessions","Classify whether user intent was satisfied in a Datadog Agent Observability trace or session. Three modes: (1) session_id — classify a single CMD+I assistant session with RUM; (2) trace_id — classify a single Agent Observability trace without RUM; (3) ml_app — sample and classify multiple sessions or traces from a given LLM app. Output is compact by default (verdict + one-sentence reason). Use when evaluating satisfaction, classifying sessions\u002Ftraces, labeling data, or generating signal for agent-observability-eval-pipeline or agent-observability-trace-rca.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1694,1695,1696,1697,1698],{"name":1651,"slug":1652,"type":15},{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:26.341497",{"slug":1701,"name":1701,"fn":1702,"description":1703,"org":1704,"tags":1705,"stars":25,"repoUrl":26,"updatedAt":1711},"agent-observability-trace-rca","diagnose LLM application failures from traces","Root cause analysis on production LLM traces. Diagnoses why an LLM application is failing — works from eval judge verdicts, runtime errors, or structural anomalies depending on what signals are present. Walks the span tree from symptom to root cause. Use when user says \"what's wrong with my app\", \"why is my eval failing\", \"analyze errors\", \"root cause analysis\", \"diagnose failures\", or wants to understand production failure patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1706,1707,1708,1709,1710],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},"2026-06-19T09:04:24.316244",{"slug":1713,"name":1713,"fn":1714,"description":1715,"org":1716,"tags":1717,"stars":25,"repoUrl":26,"updatedAt":1723},"agent-skills","use Datadog observability skills","Datadog skills for AI agents. Essential monitoring, logging, tracing and observability.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1718,1719,1722],{"name":17,"slug":18,"type":15},{"name":1720,"slug":1721,"type":15},"Monitoring","monitoring",{"name":13,"slug":14,"type":15},"2026-04-06T18:08:33.337476",{"slug":1725,"name":1725,"fn":1726,"description":1727,"org":1728,"tags":1729,"stars":25,"repoUrl":26,"updatedAt":1743},"datadog-app","build and manage Datadog applications","Guides developers building Datadog Apps with TypeScript, React, the @datadog\u002Fapps scaffolder, and @datadog\u002Fvite-plugin. Use when a user wants to scaffold, run, debug, upgrade, build, upload, publish, upload without publishing (draft upload), add an upload-no-publish script, set up CI\u002FCD, use OAuth or API\u002Fapplication key auth, trigger\u002Fpoll Workflow Automation, choose DDSQL or Action Catalog for backend data access, or query app datastores with DDSQL, including backend function troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1730,1731,1734,1737,1740],{"name":17,"slug":18,"type":15},{"name":1732,"slug":1733,"type":15},"Frontend","frontend",{"name":1735,"slug":1736,"type":15},"React","react",{"name":1738,"slug":1739,"type":15},"TypeScript","typescript",{"name":1741,"slug":1742,"type":15},"Vite","vite","2026-06-18T08:01:32.562331",{"slug":1745,"name":1745,"fn":1746,"description":1747,"org":1748,"tags":1749,"stars":25,"repoUrl":26,"updatedAt":1758},"dd-apm","query Datadog APM traces","APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM setup, instrumentation (SSI, ddtrace, agent install), or analysis.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1750,1751,1754,1755],{"name":17,"slug":18,"type":15},{"name":1752,"slug":1753,"type":15},"Distributed Tracing","distributed-tracing",{"name":13,"slug":14,"type":15},{"name":1756,"slug":1757,"type":15},"Performance","performance","2026-04-06T18:08:34.575282",35,{"items":1761,"total":1816},[1762,1769,1777,1784,1792,1800,1808],{"slug":1587,"name":1587,"fn":1588,"description":1589,"org":1763,"tags":1764,"stars":25,"repoUrl":26,"updatedAt":1600},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1765,1766,1767,1768],{"name":17,"slug":18,"type":15},{"name":1594,"slug":1595,"type":15},{"name":1597,"slug":1598,"type":15},{"name":13,"slug":14,"type":15},{"slug":1602,"name":1602,"fn":1603,"description":1604,"org":1770,"tags":1771,"stars":25,"repoUrl":26,"updatedAt":1616},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1772,1773,1774,1775,1776],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"slug":1618,"name":1618,"fn":1619,"description":1620,"org":1778,"tags":1779,"stars":25,"repoUrl":26,"updatedAt":1627},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1780,1781,1782,1783],{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"slug":1629,"name":1629,"fn":1630,"description":1631,"org":1785,"tags":1786,"stars":25,"repoUrl":26,"updatedAt":1643},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1787,1788,1789,1790,1791],{"name":1635,"slug":1636,"type":15},{"name":1638,"slug":1639,"type":15},{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":13,"slug":14,"type":15},{"slug":1645,"name":1645,"fn":1646,"description":1647,"org":1793,"tags":1794,"stars":25,"repoUrl":26,"updatedAt":1657},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1795,1796,1797,1798,1799],{"name":1651,"slug":1652,"type":15},{"name":17,"slug":18,"type":15},{"name":1610,"slug":1611,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"slug":1659,"name":1659,"fn":1660,"description":1661,"org":1801,"tags":1802,"stars":25,"repoUrl":26,"updatedAt":1673},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1803,1804,1805,1806,1807],{"name":17,"slug":18,"type":15},{"name":1666,"slug":1667,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"name":1671,"slug":1672,"type":15},{"slug":1675,"name":1675,"fn":1676,"description":1677,"org":1809,"tags":1810,"stars":25,"repoUrl":26,"updatedAt":1687},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1811,1812,1813,1814,1815],{"name":17,"slug":18,"type":15},{"name":23,"slug":24,"type":15},{"name":1613,"slug":1614,"type":15},{"name":13,"slug":14,"type":15},{"name":1685,"slug":1686,"type":15},34]