vapor-rust
A client library for Rust applications to post metrics to vapord.
Setup
In Cargo.toml:
= "<latest-version>"
Usage
// Setup
let vapor = new;
// Gauges
vapor.gauge;
// Events
vapor.event;
// Sampled Gauges (0.1% of the time)
vapor.sample_gauge;
// Use `clone` to support multiple writers
Releasing
- Update version in
Cargo.toml, commit and push upstream - Create a tag and push it, e.g. :
git tag v0.1.0 && git push upstream v0.1.0 - Checkout the tag and publish:
git checkout v0.1.0 && cargo publish