9 releases (5 breaking)
0.23.1 | Mar 17, 2021 |
---|---|
0.23.0 | Mar 17, 2021 |
0.21.0 | Feb 26, 2021 |
0.20.0 | Feb 21, 2021 |
0.3.3 | Jan 22, 2021 |
#4 in #rill-rate
24 downloads per month
80KB
211 lines
rillrate-js
Dynamic tracing system that tends to be real-time.
Node.js bindings.
How to use
Add it as a dependency to your node.js
project:
npm install --save @rillrate/rillrate
Import it in your code and install a tracer:
rillrate = require('@rillrate/rillrate')
rillrate.install()
Add a metric and use methods to update it:
gauge = new rillrate.Gauge('my.gauge', 0, 100)
gauge.set(55.0)
histogram = new rillrate.Histogram('my.histogram', [10, 20, 50, 100, 200, 500])
histogram.add(128.0)
Dependencies
~18–34MB
~556K SLoC