Macro tc_telemetry::telemetry[][src]

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

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!(CONSENSUS_INFO; "afg.authority_set";
	"authority_id" => authority_id.to_string(),
	"authority_set_id" => ?set_id,
	"authorities" => authorities,
);