{{ span.name | display_name(span.kind, metadata) }} {{ span.status }}
{% if insight %}
{{ insight }}
{% endif %}
kind
{{ span.kind }}
span id
{{ span.id }}
duration
{% if span.ended_at and span.started_at %} {{ ((span.ended_at - span.started_at).total_seconds() * 1000)|round(1) }}ms {% else %} running… {% endif %}
{% if metadata %} {% if metadata.model %}
model
{{ metadata.model }}
{% endif %} {% if metadata.prompt_tokens is not none %}
tokens
{{ metadata.prompt_tokens }} in / {{ metadata.completion_tokens }} out
{% endif %} {% if metadata.cost_usd is not none %}
cost
{{ metadata.cost_usd | format_cost }}
{% endif %} {% if metadata.latency_ms is not none %}
latency
{{ metadata.latency_ms }}ms
{% endif %} {% endif %}
{% if input_data is not none %}
{{ input_data | tojson(indent=2) }}
{% endif %} {% if output_data is not none %}
{{ output_data | tojson(indent=2) }}
{% endif %}