log2trace-ui - v1.0.0-RC1
    Preparing search index...

    Interface FilterFieldConfig

    Parsed representation of a <trace-filter> child element's attributes.

    One config per filter field. <trace-visualizer> collects these from any <trace-filter> children at connect time, but they can also be supplied programmatically via TraceVisualizerConfig.filterConfigs.

    The config drives both the rendered control (via FilterFieldType) and the matching logic in filterSpans (from filter.ts) / buildQueryParams (from filter.ts).

    interface FilterFieldConfig {
        autoRange: boolean;
        debounce: number;
        field: string;
        label: string;
        options: FilterOption[];
        optionsSource: OptionsSource;
        placeholder: string;
        required: boolean;
        source: FilterSource;
        target: FilterTarget;
        type: FilterFieldType;
        width: number;
    }
    Index

    Properties

    autoRange: boolean

    When true, the from/to values are auto-computed from data min/max span timestamps on load.

    debounce: number

    Debounce delay in milliseconds applied to text filters. 0 disables debouncing.

    field: string

    Dot-path or special key (e.g. 'spanName', 'serviceName', 'hasError', '*') the filter matches on.

    label: string

    Human-readable label rendered next to the control.

    options: FilterOption[]

    Dropdown options. Use string[] for simple values or FilterOption[] for value/label pairs.

    optionsSource: OptionsSource

    How to populate dropdown options: 'static' (from attribute) or 'auto' (from data).

    placeholder: string

    Placeholder text for text and datetime-range inputs. Empty string when not set.

    required: boolean

    When true, fetch is gated until the user supplies a value.

    source: FilterSource

    Whether the filter runs client-side or is pushed to the data source.

    target: FilterTarget

    Whether the filter matches span-level fields or per-log event attributes.

    Which UI control to render.

    width: number

    Pixel width of the rendered control. 0 falls back to the default per type.