发布

  • [OPIK-6268] [SDK] feat: add environment support (#6622)

    frostbyte_neo 发布于 2026-05-11 12:02:44 +00:00

    • [OPIK-6268] [SDK] feat: add environment support to traces, spans, and threads

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

    • revert(codegen): restore openapi.yaml to main version

    • refactor(env): simplify _find_environment_by_name, drop overloads

    • feat(env): raise EnvironmentAlreadyExists on duplicate create in Python and TS SDKs

    • test(decorator): wire environment through emulation layer and add @track unit tests

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

    • improve env stripping from spans

    • fix(ts-sdk): reject array elements containing commas in OQL in/not_in parser

    The backend splits the comma-joined value string to recover individual
    items, so a comma inside a value is structurally unrepresentable and
    would cause silent data corruption. parseArrayValue now throws a
    descriptive error explaining the constraint, and tests cover both the
    single-element and multi-element cases.

    Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

    • better warning message

    • fix: OPIK_ENVIRONMENT in python


    Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

    下载附件