Skip to content

INPUT_VALUE overwritten in _process_input_data leading to loss of multi-message context #151

@rite7sh

Description

@rite7sh

Summary

SpanAttributes.INPUT_VALUE is overwritten multiple times in _process_input_data, resulting in loss of context for multi-message inputs.

In the current implementation, the final assignment reduces the input to only the first message, which breaks trace correctness for conversational inputs.


Affected Code

In _span_io_handler.py:

if eval_input:
    eval_input_str = " \n ".join(map(str, eval_input))
    span.set_attribute(SpanAttributes.INPUT_VALUE, eval_input_str)

if eval_input and len(eval_input) > 0:
    span.set_attribute(SpanAttributes.INPUT_VALUE, eval_input[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions