Macro sc_telemetry::telemetry[][src]

macro_rules! telemetry {
    ( $telemetry:expr; $verbosity:expr; $msg:expr; $( $t:tt )* ) => { ... };
}
Expand description

Report a telemetry.

Translates to [tracing::info], but contains an additional verbosity parameter which the log record is tagged with. Additionally the verbosity parameter is added to the record as a key-value pair.

Example

telemetry!(
    telemetry;      // an `Option<TelemetryHandle>`
    CONSENSUS_INFO;
    "afg.authority_set";
    "authority_id" => authority_id.to_string(),
    "authority_set_id" => ?set_id,
    "authorities" => authorities,
);