Silent Tracing Failures in SpanAttributes: Error Logging Needed
Hey, when logging an incorrect value (i.e. [16]) to SpanAttributes.LLM_TOKEN_COUNT_COMPLETION there is a silent tracing failure and the trace doesn鈥檛 show up in the UI. Upon inspecting the docker logs of the deployment I found:
Traceback (most recent call last):
File "/phoenix/env/phoenix/db/bulk_inserter.py", line 200, in _insert_spans
result = await insert_span(session, span, project_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/phoenix/env/phoenix/db/insertion/span.py", line 92, in insert_span
cumulative_llm_token_count_completion += cast(int, accumulation[2] or 0)
TypeError: 'int' object is not iterableWould be helpful if the client logged an error with a hint instead of just silently failing
