[][src]Function casperlabs_engine_shared::logging::log_duration

pub fn log_duration(
    correlation_id: CorrelationId,
    metric: &str,
    tag: &str,
    duration: Duration
) -> Option<MessageId>

Arguments

  • correlation_id - a shared identifier used to group metrics
  • metric - the name of the metric
  • tag - a grouping tag for the metric
  • duration - in seconds