ActionObservationContext

class ActionObservationContext(val process: AgentProcess, val action: Action)

Thin context for the embabel.action span: wraps the owning AgentProcess and the Action.

statusCode is set after the action runs and read by the convention at stop — the only mutable field, since the outcome status is not known when the span opens. No cross-thread synchronization is needed: observe{} is synchronous, so it is written and then read on the same thread, with a happens-before from program order.

Constructors

Link copied to clipboard
constructor(process: AgentProcess, action: Action)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String