Skip to content

fedebertolini/html-dom-trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NodeJS CLI to parse HTML document and model the DOM as a Trace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published