FlowSemantics (TypeScript)
    Preparing search index...

    Class TraceRecorder

    Trace recorder that validates event types/reasons and applies the diagnostic hook (SPEC 12.1-12.3).

    Index
    • Emit a validated trace event, applying the diagnostic hook when present.

      Parameters

      • type:
            | "condition_evaluated"
            | "condition_raised"
            | "guard_evaluated"
            | "action_executed"
            | "action_raised"
            | "catch_matched"
            | "catch_predicate_evaluated"
            | "catch_predicate_raised"
            | "catch_handled"
            | "catch_declined"
            | "rethrow_reached"
            | "hook_invoked"
            | "hook_raised"
            | "effect_proposed"
            | "skipped_by_short_circuit"
            | "skipped_by_mode"
            | "finally_started"
            | "finally_completed"
            | "finally_raised"
            | "cancelled_observed"
            | "timed_out_observed"
            | "rule_skipped"
      • ruleId: string | null
      • reason:
            | "condition_false"
            | "guard_blocked"
            | "not_effective"
            | "earlier_match"
            | "mode_excluded"
            | null
      • timestamp: number

      Returns void