Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.85 KB

README.md

File metadata and controls

35 lines (32 loc) · 1.85 KB

Chrome extension for Datadog RUM demo

What is this?

  • 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

  • Chrome web store version has been developed by wangzz2019 and released here. See the repo for more details.

How to setup

  • Clone or download this repository to your PC.
  • contents.js
    • applicationId: Your applicaton ID
    • clientToken: Your client token
    • site: Datadog site to send RUM
    • service: service tag
    • env: env tag
    • setUser(): Sample code for adding custom attributes
    • To enable session replay,
  • manifest.json
    • matches: Site URL for RUM demo
      • Refer doc for match patterns.
    • js: replace datadog-rum-v3.js with datadog-rum-recorder.js for RUM session replay.
  • Download Datadog RUM javascript file
    • You can use rum_download.sh file.
  • 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.
  • When you modified files in this folder, they will be reloaded in Chrome automatically.