yera.ui.activity_trace
Project persisted logging records into a local activity trace.
Symbols
ActivityTraceRow
Describe one correlated operation in a persisted activity trace.
Fields
Stable identity shared by the operation's logging phases.
Enclosing operation, when recorded.
Display indentation derived from available parent operations.
Storage time of the operation's first observed phase.
Kind of component that performed the operation.
Kind of operation that was performed.
Projected terminal or active state.
Recorded duration for a terminal operation.
Privacy-reviewed metadata associated with the operation.
Storage time of the terminal phase, when one was recorded.
Methods
ActivityTraceRow.__init__
__init__(
operation_id: UUID,
parent_operation_id: UUID | None,
depth: int,
occurred_at: datetime,
actor: LoggingActor,
activity: LoggingActivity,
status: ActivityTraceStatus,
elapsed_seconds: float | None,
attributes: LoggingAttributes,
ended_at: datetime | None = None,
) → Noneproject_activity_trace
project_activity_trace(
records: Iterable[StoredEventRecord],
session_status: SessionStatus,
) → tuple[ActivityTraceRow, ...]Project persisted logging phases into chronological activity rows.
Non-logging records are ignored. Logging phases sharing an operation ID produce one row positioned by the first phase observed in append order. Missing parents do not remove a row, and malformed parent cycles are bounded while deriving display depth.
Parameters
Timestamped session records in persisted append order.
Current persisted lifecycle state of the session.
Returns
Activity rows in first-observed operation order.