opentelemetry-rust/examples/metrics-basic
Dimitris Apostolou 81fea0747c
Avoid duplicate crates (#2703)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
2025-02-25 08:07:55 -08:00
..
src use workspace lint configuration (#2674) 2025-02-17 18:18:13 -08:00
Cargo.toml Avoid duplicate crates (#2703) 2025-02-25 08:07:55 -08:00
README.md Add basic example showing how to use various metric instruments (#1062) 2023-05-15 09:53:49 -07:00

README.md

Metric Instrument Usage Example

This example shows how to use the various metric instruments to report metrics. The example setups a MeterProvider with stdout exporter, so metrics can be seen on the stdout.

Usage

Run the following, and the Metrics will be written out to stdout.

$ cargo run