log2trace-ui - v1.0.0-rc.9
    Preparing search index...

    Interface TraceState

    Everything the views share. Each field is replaced, never mutated, so a change shows up as a different object and prev states stay valid.

    interface TraceState {
        collapsed: SpanMask;
        data: {
            error?: string;
            generation: number;
            index: SpanIndex;
            phase: DataPhase;
        };
        hover: Target
        | null;
        matched: SpanMask | null;
        selection: Target;
        window: TimeWindow | null;
    }
    Index

    Properties

    collapsed: SpanMask

    Spans whose children are hidden. Advisory: the waterfall and the sequence view honour it, a flame graph keeps its own focus, the lanes and a service graph ignore it.

    data: { error?: string; generation: number; index: SpanIndex; phase: DataPhase }

    Loaded trace index and loading lifecycle state.

    Type Declaration

    • Optional Readonlyerror?: string

      Message to show when phase is 'error'.

    • Readonlygeneration: number

      Counts how many different indexes were loaded; 0 before the first.

    • Readonlyindex: SpanIndex

      The loaded spans; an empty index before any data arrives.

    • Readonlyphase: DataPhase

      Current loading lifecycle phase.

    hover: Target | null

    What the pointer is over; null for nothing.

    matched: SpanMask | null

    Spans that passed the filter; null when no filter is active.

    selection: Target

    Currently selected span target (selection.ids is empty when nothing is selected).

    window: TimeWindow | null

    Time window shared by views with a time axis; null for the whole trace.