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

    Interface TransformConfig

    Field mappings that tell transformLogs how to turn raw log records into OTel spans. Every value is a dot-path into the log record (e.g. "text.BTMID").

    The four required fields are the minimum for a trace; the optional ones add grouping, hierarchy, status and span-kind classification. The same names, in kebab-case, are the HTML attributes of <trace-visualizer>.

    interface TransformConfig {
        defaultSpanKind?: string;
        endTimeField?: string;
        parentSpanIdField?: string;
        parentSpanLookupFields?: string | string[];
        serviceNameField: string;
        spanGroupFields?: string | string[];
        spanIdField?: string;
        spanKindRules?: SpanKindRule[];
        spanNameField: string;
        statusCodeField?: string;
        timestampField: string;
        traceIdField: string;
    }
    Index

    Properties

    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".

    endTimeField?: string

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

    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")

    spanGroupFields?: string | string[]

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

    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")

    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")