Beignet API reference
    Preparing search index...

    Interface UseCaseRunEvent<Ctx>

    Event passed to the onRun hook for instrumentation.

    interface UseCaseRunEvent<Ctx> {
        ctx: Ctx;
        durationMs?: number;
        error?: unknown;
        kind: UseCaseKind;
        name: string;
        phase: "start" | "end" | "error";
    }

    Type Parameters

    • Ctx
    Index

    Properties

    ctx: Ctx

    Application context used for the run.

    durationMs?: number

    Elapsed time for end/error events.

    error?: unknown

    Error captured for error events.

    Use-case kind.

    name: string

    Use-case name.

    phase: "start" | "end" | "error"

    Execution phase being observed.