Crate scuffle_metrics_derive

Source
Expand description

A proc-macro to derive the #[metrics] attribute and the #[derive(MetricEnum)] attribute.

For more information checkout the scuffle-metrics crate.

§License

This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR Apache-2.0

Attribute Macros§

metrics
A macro used to create metric handlers.

Derive Macros§

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