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.

§Status

This crate is currently under development and is not yet stable, unit tests are not yet fully implemented.

Unit tests are not yet fully implemented. Use at your own risk.

§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.