发布

  • [OPIK-2591] [BE] Add support for `thread_id` for OpenTelemetry endpoint. (#3578)

    frostbyte_neo 发布于 2025-10-06 15:18:30 +00:00

    • [OPIK-2591] [BE] Add thread_id support in OpenTelemetry mapping and tracing
    • Introduced THREAD_ID mapping in OpenTelemetryMappingRule.
    • Updated OpenTelemetryService to extract and propagate thread_id into trace metadata.
    • Added unit tests for thread_id mapping in OpenTelemetryMapperTest.
    • Added E2E test for validating thread_id propagation in OpenTelemetryResourceTest.
    • [OPIK-2591] [BE] Fixed formatting

    • [OPIK-2591][BE] Add thread_id usage example in OpenTelemetry Python SDK tracing documentation

    • Explain usage of thread_id to group related spans into a conversational thread.
    • Link to the Multi-turn conversations guide for further context.
    • [OPIK-2591] [BE] Fixed formatting

    • [OPIK-2591] [BE] Use StringUtils.isNotBlank for cleaner threadId validation to handle both null and empty/whitespace-only strings more robustly.

    下载附件