Derive Macro MetricEnum

#[derive(MetricEnum)]
{
    // Attributes available to this derive:
    #[metrics]
}
Expand description

Implements a conversion Into<opentelemetry::Value> for the enum. This allows the enum to be used as a metric label.

You can change the crate by specifying #[metrics(crate_path = "...")].

Enum Attributes:

  • crate_path: The scuffle_metrics crate path.

Enum Variant Attributes:

  • rename: The name of the metric.