Browser extension to investigate your Browser SDK integration.
The extension is available to Datadog employees on the Chrome Web Store.
The packed extension is not (yet?) published publicly. You will need to clone this repository and build the extension manually.
$ git clone https://github.com/DataDog/browser-sdk
$ cd browser-sdk
$ yarn
$ yarn build
Then, in Google Chrome:
- Open the Extension Management page by navigating to chrome://extensions.
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the LOAD UNPACKED button and select the
browser-sdk/developer-extension/dist
directory. - Open devtools and the extension features are located on the
Browser SDK
panel.
- Log events sent by the SDK in the devtools console
- Flush buffered events
- End current session
- Load the SDK development bundles instead of production ones
- Switch between
rum
andrum-slim
bundles - Retrieve Logs/RUM configuration
For now, only Google Chrome is supported.
The Event Tab contains a list of events sent by the SDK and a menu of event types for quick filtering.
We support a basic key:value
search syntax, which means you can search within the limits of RUM event structures, such as action.target.name:action_name
.
We split each search key based on whitespace. To search with multiple conditions, simply add whitespace characters in between, such as:
type:view application.id:2 action.target.name:my_action_name
The Events List offers an interactive experience to visualize RUM events:
- Drag and drop to reorder columns in the event list
- Remove (by clicking on
x
in the column title) or add new columns:- Add a new column from searching for a field by clicking on the
+column
icon at the right side of the header row. - Add a new column from values in existing columns by right clicking on any attribute in the event json.
- Add a new column from searching for a field by clicking on the
- Copy queries and objects from the list by clicking on any cell
Info tab contains information about Session and RUM SDK configurations
- RUM/LOGS Configuration: edit configuration files on the fly. When configuration changes apply, the extension will automatically reload the page. But for some configurations you might want to click on End Current Session to ensure that the changes kicked in.
- End current session: manually end the current session within the extension. This will also end the current replay session.
Important
Don’t forget to reset everything in the Setting Tab after experimenting.
-
Request Interception: override the current SDK bundle with local build, or switch between
rum
andrum-slim
bundles on any site that is using RUM SDK. (note: if the SDK is installed from NPM, this override might not work, as it is still in an experimental stage.) -
Debug Mode: This option enables debug mode from the developer extension to display errors happening in RUM and LOGS in the developer console.
To work on the developer extension and debug it easily:
-
In a terminal, cd into the
developer-extension
folder. -
Run
yarn dev
. -
In Chrome, load the
developer-extension/dist
folder as an unpacked extension. -
After you make a change, right-click on the extension UI and “Reload frame”.