Troubleshooting Span Kind Setup in Manual Agent Instrumentation
Hi phoenix team, I’m trying to manually instrument one of our agents and I’m struggling with setting up span kind. Currently my code looks like:
tracer = get_phoenix_tracer()
span_attributes = {
SpanAttributes.INPUT_VALUE: message,
"operation.history": "\n".join(
[f"{h.role}: {h.content}" for h in chat_history]
)
if chat_history
else "",
SpanAttributes.OPENINFERENCE_SPAN_KIND: OpenInferenceSpanKindValues.AGENT,
}
with tracer.start_as_current_span(
"GeneralAgent", attributes=span_attributes
) as current_span:
...So I’d expect span kind to be logged as Agent, however I don’t see any value in the attributes or displayed.
