- Chrome extension for single function to inject JavaScript snipet for Datadog RUM.
- You can demo/trial Datadog RUM with any live web sites.
- Please check the document for Datadog RUM.
- Chrome web store version has been developed by wangzz2019 and released here. See the repo for more details.
- Clone or download this repository to your PC.
contents.js
applicationId
: Your applicaton IDclientToken
: Your client tokensite
: Datadog site to send RUMservice
: service tagenv
: env tagsetUser()
: Sample code for adding custom attributes- To enable session replay,
- Set the
defaultPrivacyLevel
- Uncomment the line including
startSessionReplayRecording()
- Set the
manifest.json
matches
: Site URL for RUM demo- Refer doc for match patterns.
js
: replacedatadog-rum-v3.js
withdatadog-rum-recorder.js
for RUM session replay.
- Download Datadog RUM javascript file
- You can use
rum_download.sh
file.
- You can use
- Load extension to your Chrome
- Open extentions page.
chrome://extensions
- Turn on Developer mode switch.
- Click Load unpacked button and load this folder.
- RUM Demo will appear in the extensions page and the extensions menu.
- Open extentions page.
- When you modified files in this folder, they will be reloaded in Chrome automatically.
- It's done by hot-reload.js. Author's repo