mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
53 lines
940 B
Rust
53 lines
940 B
Rust
extern crate reth_metrics_derive;
|
|
use reth_metrics_derive::Metrics;
|
|
|
|
fn main() {}
|
|
|
|
#[derive(Metrics)]
|
|
struct CustomMetrics;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics()]
|
|
#[metrics()]
|
|
struct CustomMetrics2;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics()]
|
|
struct CustomMetrics3;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(scope = value)]
|
|
struct CustomMetrics4;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(scope = 123)]
|
|
struct CustomMetrics5;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(scope = "some.scope")]
|
|
struct CustomMetrics6;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(scope = "some_scope", scope = "another_scope")]
|
|
struct CustomMetrics7;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(separator = value)]
|
|
struct CustomMetrics8;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(separator = 123)]
|
|
struct CustomMetrics9;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(separator = ".")]
|
|
struct CustomMetrics10;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(separator = "_", separator = ":")]
|
|
struct CustomMetrics11;
|
|
|
|
#[derive(Metrics)]
|
|
#[metrics(random = "value")]
|
|
struct CustomMetrics12;
|