metrics icon indicating copy to clipboard operation
metrics copied to clipboard

We need examples!

Open tobz opened this issue 5 years ago • 2 comments

We have the benchmark example, but it's a poor example, to be honest. We also have no examples of the full spectrum usage: creating the receiver/sinks, logging metrics, setting up an exporter/recorder, etc.

This could be a single-file example, it could be a toy example app in a separate repo under the metrics-rs organization, anything really.

tobz avatar Apr 30 '19 02:04 tobz

I also came to this a little frustrated by not finding a "simple example" of how to implement the recorder. But front page of the metrics.rs site had what I was looking for, so sharing that here in case it helps anyone.

suchapalaver avatar Jul 09 '23 14:07 suchapalaver

https://crates.io/crates/metrics_cloudwatch and https://crates.io/crates/metrics_cloudwatch_embedded are both pretty simple. I used the first to build that latter.

BMorinDrifter avatar Jul 09 '23 19:07 BMorinDrifter