kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface PipelineStep

    A single pipeline trace event emitted via KinetexConfig.onPipelineTrace.

    const client = kinetex({
    onPipelineTrace: (step) => {
    console.log(`[${step.stage}] ${step.requestId} +${step.elapsedMs}ms`);
    },
    });
    interface PipelineStep {
        requestId: RequestId;
        stage: PipelineStageName;
        elapsedMs: number;
        attempt: number;
        event: "start" | "end";
        cacheStatus?: "store" | "hit" | "miss";
        error?: unknown;
    }
    Index

    Properties

    requestId: RequestId

    Unique identifier for this request (propagated across retries).

    The pipeline stage that just completed (or errored).

    elapsedMs: number

    Elapsed ms since the request started (not since the previous step).

    attempt: number

    Current retry attempt number (1 = first attempt).

    event: "start" | "end"

    "start" when entering a stage, "end" when leaving.

    cacheStatus?: "store" | "hit" | "miss"

    Set when this step produced or consumed a cache result. "hit" = served from cache, "miss" = not in cache, "store" = written to cache.

    error?: unknown

    Set when the stage ended with an error.