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

    Interface TraceVisualizerConfig

    Everything configurable, all optional: one type for the attributes and the resolved result.

    interface TraceVisualizerConfig {
        autoFetch?: boolean;
        dataUrl?: string;
        defaultSpanKind?: string;
        detailPanelWidth?: string;
        endTimeField?: string;
        filterConfigs?: FilterFieldConfig[];
        fullWidth?: boolean;
        gutterWidth?: number;
        height?: number;
        kindColors?: Record<string, string>;
        parentSpanIdField?: string;
        parentSpanLookupFields?: string | string[];
        serviceNameField?: string;
        showLegend?: boolean;
        spanGroupFields?: string | string[];
        spanHeight?: number;
        spanIdField?: string;
        spanKindRules?: SpanKindRule[];
        spanNameField?: string;
        spanPadding?: number;
        statusCodeField?: string;
        timestampField?: string;
        traceIdField?: string;
    }

    Hierarchy

    Index

    Properties

    autoFetch?: boolean

    Whether a change of an external filter fetches at once (default) or waits for the Search button.

    dataUrl?: string

    URL to fetch trace or log data from.

    defaultSpanKind?: string

    Default SpanKind when no rule matches or no rules are configured. Accepts a SpanKind name (e.g. "Internal", "Server") or numeric value (0-5). Defaults to "Unspecified".

    detailPanelWidth?: string

    CSS width of the detail panel.

    endTimeField?: string

    Dot-path to an explicit end-time field, if available

    filterConfigs?: FilterFieldConfig[]

    The filter fields.

    fullWidth?: boolean

    Stretch to the width of the parent.

    gutterWidth?: number

    Width of the label column in px.

    height?: number

    Height of the element in px.

    kindColors?: Record<string, string>

    Colour by span kind (a kind number or name to a CSS colour).

    parentSpanIdField?: string

    Dot-path to a field providing parent-child hierarchy between spans

    parentSpanLookupFields?: string | string[]

    Dot-path(s) whose values identify the parent span's group fields (partial match). Positionally corresponds to spanGroupFields — e.g. ["text.InitiatingApplication"] matches the first component of spanGroupFields. Resolved after all spans are built: first tries encompassing span, then latest-before.

    serviceNameField?: string

    Dot-path to the field that determines the service/resource row (e.g. "text.MachineName")

    showLegend?: boolean

    Show the span-kind colour legend.

    spanGroupFields?: string | string[]

    Dot-path(s) that group logs into spans within a trace. If omitted, each log becomes its own span.

    spanHeight?: number

    Height of a span bar in px.

    spanIdField?: string

    Dot-path to a unique log identifier (used in one-log-per-span mode)

    spanKindRules?: SpanKindRule[]

    Rules for determining SpanKind from log field values. Each rule has match (dot-path→value pairs, all must match) and kind (SpanKind name). First matching rule wins; default is defaultSpanKind or Unspecified.

    spanNameField?: string

    Dot-path to the field used as the span name/label (e.g. "text.Action")

    spanPadding?: number

    Space between span rows in px.

    statusCodeField?: string

    Dot-path to an error-code field (e.g. "text.Code"). If any log in a span has a non-zero / truthy value, the span status is Error.

    timestampField?: string

    Dot-path to the timestamp field (ISO 8601 or epoch-ms)

    traceIdField?: string

    Dot-path to the field that groups logs into traces (e.g. "text.BTMID")