@langwatch/scenario
    Preparing search index...

    Function grepTrace

    • Searches across all span attributes, events, and content for a pattern. Returns matching spans with their tree position and matching content.

      Parameters

      • spans: ReadableSpan[]

        The full array of ReadableSpan objects for the trace

      • pattern: string

        Case-insensitive search pattern

      Returns string

      Formatted string with matches, limited to 20 results and ~4000 tokens