html-dom-trace

0.0.1 • Public • Published

html-dom-trace

NodeJS CLI to fetch and parse a HTML document, model the DOM as a Trace and send it to HoneyComb.

Each DOM element is represented as a trace span, in which their span's duration is the estimated span's size (including children). All element attributes are mapped as span fields. This tool's purpose is to help detect big DOM subtrees (similar goal and implementation as html-size-visualizer, with a different visualization tool).

Visualization of HTML DOM as a Honeycomb trace

Installation

Install CLI as global package: npm i -g html-dom-trace

Usage

$ html-dom-trace <url> [options]

Options:

  • --hc-key: HoneyComb API Key
  • --hc-dataset: HoneyComb Dataset name (default html-dom-trace)
  • -v, --version: Displays current version
  • -h, --help: Displays this message

Examples

$ html-dom-trace https://www.example.com --hc-key=1234567890 --hc-dataset=html-traces

Readme

Keywords

none

Package Sidebar

Install

npm i html-dom-trace

Weekly Downloads

4

Version

0.0.1

License

MIT

Unpacked Size

168 kB

Total Files

8

Last publish

Collaborators

  • fedebertolini