发布

  • [OPIK-5768] [BE] fix: restrict online evaluation rules to SDK source threads (#6261)

    frostbyte_neo 发布于 2026-04-14 16:22:59 +00:00

    • [OPIK-5768] [BE] fix: restrict online evaluation rules to SDK source threads

    Extends the OPIK-5768 source filter to trace threads, completing the
    trifecta (traces, spans, threads).

    • fix(online-scoring): align firstTraceSource with firstTraceId on swap

    When traces arrive out of order, firstTraceId is swapped to the
    chronologically earlier UUIDv7, but firstTraceSource was not updated
    to match — it stayed from the first-processed trace. This created a
    semantic mismatch: firstTraceId pointed to trace A but firstTraceSource
    came from trace B.

    Fix: when firstTraceId is swapped (new trace has earlier UUIDv7), also
    update firstTraceSource to the new trace's source. When firstTraceId
    is NOT swapped, preserve the existing source. Both fields now always
    refer to the same trace.

    Tests:

    • TraceThreadListenerTest (new)

    Addresses PR#6261 review comment from baz-reviewer[bot].

    下载附件