发布

  • [OPIK-2623] [BE/FE] Split truncate and strip_attachments functionality (#3599)

    frostbyte_neo 发布于 2025-10-09 10:00:13 +00:00

    • [OPIK-2432] Split truncate and strip_attachments parameters

    Separated character limiting (truncate) from attachment handling (strip_attachments):

    • Removed truncate from getById endpoints (detail views show full data)
    • Added strip_attachments to all endpoints (default: false for backward compatibility)
    • Frontend: removed truncate from useTraceById, updated components to use stripAttachments=true
    • Backend: services use !stripAttachments for reinjection logic

    Fixes issue where detail views needed full text but stripped attachments.

    • Fix attachment reinjection logic in SpanService and add comprehensive test

    • Update apps/opik-backend/src/test/java/com/comet/opik/api/resources/utils/resources/SpanResourceClient.java

    Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

    • Revision 3: Fix Prettier formatting for frontend files

    • Fixing small error


    Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

    下载附件