Skip to main content

Module command_trace

Module command_trace 

Source
Expand description

Command tracing for debugging and observability.

This module provides a lightweight per-command trace ring buffer that records:

  • The command that was applied
  • Pre and post state digests
  • Events generated
  • Context values used in decision-making

This enables debugging by observing “input command -> output events” per request.

Structs§

CommandTiming
Timing breakdown for command processing.
CommandTraceRecord
A single command trace record capturing the full context of a command execution.
CommandTraceRecordBuilder
Builder for creating CommandTraceRecord instances
CommandTraceStore
Store for command trace records with a ring buffer implementation.
EngineStateDigest
Deterministic digest of engine state for comparison.
SymbolSummary
Summary of a single symbol’s orderbook state.

Enums§

JournalStatus
Journal status for a command trace record.

Constants§

DEFAULT_CAPACITY 🔒
Default capacity for the command trace store ring buffer.