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

    Function getField

    • Traverse a dot-separated path on a nested object and return the leaf value.

      Used throughout the transform and filter layers to read user-configured field paths like "text.MachineName" or "resource.attributes.host" out of arbitrary log records. Missing intermediate keys yield undefined rather than throwing, and non-primitive leaves are stringified so the result always fits the FieldValue shape.

      Parameters

      • obj: object

        Object to traverse (typically a log entry, span, or event).

      • path: string

        Dot-separated path. Empty segments are not handled specially.

      Returns FieldValue

      The resolved value, or undefined if any segment is missing.