@langwatch/scenario
    Preparing search index...

    Class JudgeSpanDigestFormatter

    Transforms OpenTelemetry spans into a complete plain-text digest for judge evaluation. Deduplicates repeated string content to reduce token usage.

    Index

    Constructors

    Methods

    • Formats spans into a complete digest with full content and nesting.

      Parameters

      • spans: ReadableSpan[]

        All spans for a thread

      Returns string

      Plain text digest

    • Formats spans into a structure-only digest showing span tree hierarchy without attributes, events, or content. Used for large traces that exceed the token threshold, paired with expand_trace/grep_trace tools.

      Parameters

      • spans: ReadableSpan[]

        All spans for a thread

      Returns string

      Plain text digest with only structural information