Skip to main content

span_node_tick

Function span_node_tick 

Source
pub fn span_node_tick(node_id: u64, session_id: Option<u64>) -> Span
Expand description

Create a span for node tick operations.

§Arguments

  • node_id - The ID of the node performing the tick
  • session_id - Optional session ID

§Examples

use elara_runtime::observability::tracing::span_node_tick;
use elara_core::NodeId;

let span = span_node_tick(NodeId(1), Some(42));
let _enter = span.enter();
// ... perform tick ...