Pm4ExUnit.TraceCollector (pm4exunit v26.11.12)

Copy Markdown

Collects process execution traces and events in-memory during an ExUnit test case. Provides structured OCEL 2.0 object and event recording.

Summary

Functions

Emits an event into the trace collector.

Initializes an empty trace collector.

Registers an object in the trace collector.

Types

t()

@type t() :: %Pm4ExUnit.TraceCollector{
  events: [map()],
  objects: %{
    required(String.t()) => %{
      id: String.t(),
      type: String.t(),
      attributes: map()
    }
  }
}

Functions

emit_event(collector, event_id, activity, opts \\ [])

Emits an event into the trace collector.

new()

Initializes an empty trace collector.

register_object(collector, obj_id, obj_type, attributes \\ %{})

Registers an object in the trace collector.