Zum Inhalt springen
Kitbay

upgrade-browser-sdk-v5

MITAktualisiert am 9. Nov. 2026185GitHub-Sterne

A Datadog skill with step-by-step instructions for moving a web app from version 4 to version 5 of the Datadog Browser SDK.

Was der Skill vermittelt

A Datadog skill with step-by-step instructions for moving a web app from version 4 to version 5 of the Datadog Browser SDK. The agent bumps the package or CDN version, renames removed initialisation options such as sampleRate and proxyUrl, replaces retired RUM and Logs functions, and adjusts Session Replay, whose defaults changed to masking with recording on start and a zero sample rate. It also handles changes to beforeSend callbacks, trusted events, Content Security Policy domains and tracing headers. It applies to both npm and CDN setups.

Funktionen

  • Bump Browser SDK packages or CDN paths from v4 to v5
  • Replace removed init options and deprecated APIs
  • Update Session Replay settings for v5 defaults
  • Adjust CSP and CORS settings for v5