发布

  • [OPIK-4157] Add feedback scores logging to TypeScript SDK (#5064)

    frostbyte_neo 发布于 2026-02-05 11:24:13 +00:00

    • [OPIK-4157] Add feedback scores logging to TypeScript SDK

    Add logTracesFeedbackScores and logSpansFeedbackScores methods to the
    Opik client for logging feedback scores to traces and spans. Includes
    comprehensive unit and integration tests.

    Changes:

    • Add FeedbackScoreData type for score input
    • Add batch queue integration for trace/span feedback scores
    • Export new types from index
    • Add unit tests for both trace and span feedback score logging
    • Add integration tests verifying backend persistence

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • [OPIK-4157] Simplify feedback scores tests
    • Move edge cases from integration tests to unit tests
    • Keep integration tests focused on end-to-end verification only
    • Add explicit vitest imports to unit tests
    • Remove redundant guards in integration test hooks

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


    Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

    下载附件