rillrate-js

Crates.iorillrate-js
lib.rsrillrate-js
version0.23.1
sourcesrc
created_at2021-01-21 19:42:14.311635
updated_at2021-03-17 14:53:58.859714
descriptionrillrate binding for node.js
homepagehttps://github.com/rate-technology/rillrate-js
repositoryhttps://github.com/rate-technology/rillrate-js
max_upload_size
id345020
size209,232
Denis Kolodin (therustmonk)

documentation

https://docs.rs/rill/

README

rillrate-js

npm

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)
Commit count: 51

cargo fmt