@langwatch/scenario
    Preparing search index...

    Class JudgeSpanCollector

    Collects OpenTelemetry spans for judge evaluation. Implements SpanProcessor to intercept spans as they complete.

    Implements

    • SpanProcessor
    Index

    Constructors

    Methods

    • Retrieves all spans associated with a specific thread.

      Parameters

      • threadId: string

        The thread identifier to filter spans by

      Returns ReadableSpan[]

      Array of spans for the given thread

    • Called when a ReadableSpan is ended, if the span.isRecording() returns true.

      Parameters

      • span: ReadableSpan

        the Span that just ended.

      Returns void

    • Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.

      Returns Promise<void>