发布

  • [OPIK-5191] [BE] feat: add user identity to ClickHouse log_comment (#5778)

    frostbyte_neo 发布于 2026-03-31 08:20:22 +00:00

    • [OPIK-5191] [BE] feat: add user identity to ClickHouse log_comment for query attribution

    Extend the existing log_comment SETTINGS format from
    query_name:workspace_id:details to query_name:workspace_id:user_name:details
    so slow query investigations can identify which user triggered each query.

    The userName is already available in scope at every call site (first parameter
    of the makeMonoContextAware lambda) — this change simply passes it through to
    the log_comment string.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • fix: add missing userName param to getSTWithLogComment/getLogComment call sites after merge

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
    Co-authored-by: Andres Cruz andresc@comet.com

    下载附件