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])
Summary
SpanAttributes.INPUT_VALUEis 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: