Arize Phoenix TS
    Preparing search index...
    • Converts a plain object into an OpenTelemetry-compatible attributes record by filtering out null values. Properties with null values are removed because OpenTelemetry attributes do not support null.

      Note: undefined values are not filtered and will pass through.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • obj: T

        The source object whose entries will be converted to attributes.

      Returns Record<string, AttributeValue>

      A new record containing only the non-null entries from the input.