Skip to content

Files

Latest commit

Apr 14, 2025
10cf02c · Apr 14, 2025

History

History

metrics-basic

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