mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
revert: fix(analytics): feat(analytics): analytics APIs (#2777)
This commit is contained in:
@ -63,22 +63,3 @@ macro_rules! histogram_metric {
|
||||
> = once_cell::sync::Lazy::new(|| $meter.f64_histogram($description).init());
|
||||
};
|
||||
}
|
||||
|
||||
/// Create a [`Histogram`][Histogram] u64 metric with the specified name and an optional description,
|
||||
/// associated with the specified meter. Note that the meter must be to a valid [`Meter`][Meter].
|
||||
///
|
||||
/// [Histogram]: opentelemetry::metrics::Histogram
|
||||
/// [Meter]: opentelemetry::metrics::Meter
|
||||
#[macro_export]
|
||||
macro_rules! histogram_metric_u64 {
|
||||
($name:ident, $meter:ident) => {
|
||||
pub(crate) static $name: once_cell::sync::Lazy<
|
||||
$crate::opentelemetry::metrics::Histogram<u64>,
|
||||
> = once_cell::sync::Lazy::new(|| $meter.u64_histogram(stringify!($name)).init());
|
||||
};
|
||||
($name:ident, $meter:ident, $description:literal) => {
|
||||
pub(crate) static $name: once_cell::sync::Lazy<
|
||||
$crate::opentelemetry::metrics::Histogram<u64>,
|
||||
> = once_cell::sync::Lazy::new(|| $meter.u64_histogram($description).init());
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user