I have a doubt regarding logging our own metrics per span. I see annotations is a way, but it's not clear on how I can log my own metric within a span (for it to appear on the dashboard in the feedback column.
馃挕聽Hint: Mention RunLLM in the thread for followups.
RunLLM what if I want to do in real-time? I have a method where I've defined a span, it's attributes etc. That's where i get the value of the metric, and I want to log it from there like span.set_attribute(), without having to do this client.post()
馃挕聽Hint: Mention RunLLM in the thread for followups.
RunLLM I already have this, but is there anyway I can take this route and have the metric appear on the "feedback" column?
馃挕聽Hint: Mention RunLLM in the thread for followups.
how do i retrieve my current span or parent trace ID? RunLLM
馃挕聽Hint: Mention RunLLM in the thread for followups.
RunLLM so when I'm trying to log annotations, should I focus on logging them to the specific span or the parent trace of the span? am i understanding it correctly?
馃挕聽Hint: Mention RunLLM in the thread for followups.
John G. Thank you! I'm almost done with that, but one thing I notice is the Span ID I'm reporting to is not the same as the Span ID I get when I copy span ID from the dashboard.
# Get the span ID for Phoenix annotations
span_context = span.get_span_context()
span_id = span_context.span_id
# Convert span_id to hex string format expected by Phoenix
span_id_hex = format(span_id, '032x')I'm getting extra prepended 0s: 0000000000000000f3291f2d8b724e1e vs f3291f2d8b724e1e. The bot said use '032x' but it should be '016x'
RunLLM how do i get the trace_id of the parent span?
馃挕聽Hint: Mention RunLLM in the thread for followups.
