beamtrace/diff

Types

pub type DiffItem {
  Matched(
    left_id: String,
    right_id: String,
    latency_delta_ns: Int,
  )
  Added(right_id: String)
  Removed(left_id: String)
  Changed(left_id: String, right_id: String, reason: String)
}

Constructors

  • Matched(left_id: String, right_id: String, latency_delta_ns: Int)
  • Added(right_id: String)
  • Removed(left_id: String)
  • Changed(left_id: String, right_id: String, reason: String)
pub type DiffReport {
  DiffReport(
    items: List(DiffItem),
    added: Int,
    removed: Int,
    changed: Int,
  )
}

Constructors

  • DiffReport(
      items: List(DiffItem),
      added: Int,
      removed: Int,
      changed: Int,
    )

Values

pub fn compare(
  left: List(types.TraceEvent),
  right: List(types.TraceEvent),
) -> DiffReport

Align two causal sequences by logical actor and term shape. Physical PIDs, node-local timestamps, seq_trace serials, scalar values, and fingerprints are deliberately absent from the alignment signature.

pub fn signature(event: types.TraceEvent) -> String
Search Document