Expand description
Runtime metric interface similar to native Prometheus metrics.
This is intended to be used only for testing and debugging and must never
be used in production. It requires the Substrate wasm tracing support
and command line configuration: --tracing-targets wasm_tracing=trace
.
Structs§
- Counter
- A counter metric.
- Counter
Vec - Holds a set of counters that have different values for their labels,
like Prometheus
CounterVec
. - Histogram
- Labeled
Metric
Functions§
- get_
current_ time - Returns current time in ns