Macro ibc_relayer::telemetry[][src]

macro_rules! telemetry {
    ($e:expr) => { ... };
}
Expand description

A macro to send metric updates via a telemetry handle, only if the telemetry feature is enabled. Otherwise, it compiles to a no-op.

Note

Equivalent to #[cfg(feature = "telemetry")], but should be preferred over the latter.

Example

telemetry!(self.telemetry.tx_count(1));