{% import 'ui/kit.html' as kit %}{% import 'ui/telemetry/_t.html' as t with context %} {%- if n is none %} {% call kit.drawer('span', 'Not found') %}

That span is not in the retained trace.

{% endcall %} {%- else %} {% call kit.drawer(n.op, n.name) %}
{{ h.dur(n.duration_us) }}{{ h.dur(n.self_us) }} self
{{ kit.kv([('Span id', n.span_id), ('Parent', n.parent_id or 'root'), ('Service', n.service), ('Version', n.version or 'unversioned'), ('Ran on', n.instance or 'unknown'), ('Operation', n.op), ('Duration', h.dur(n.duration_us)), ('Self time', h.dur(n.self_us)), ('Status', h.status_text(n.status_code)), ('Message', n.status_message or '-')]) }} {%- if s and s.count %}
Percentile context {{ n.service }} · {{ n.attrs.get('http.route') or n.route or 'every route' }}, last hour
{{ t.pctl('this span', h.dur(n.duration_us), h.verdict(n.duration_us, s)) }} {{ t.pctl('p50', h.dur(s.p50_us), '') }} {{ t.pctl('p95', h.dur(s.p95_us), '') }} {{ t.pctl('p99', h.dur(s.p99_us), '') }}
{%- endif %}
Attributes {{ n.attrs|length }} on this span
{{ t.attrs_table(n.attrs) }} {%- if n.resource %}
Resource where this ran, from the OTel resource
{{ t.attrs_table(n.resource) }} {%- endif %} {%- if n.events %}
Span events
{%- for e in n.events %}
{{ e.name }}
{% for k in e.attrs|sort %}{% endfor %}
{{ k }}{{ e.attrs[k] }}
{%- endfor %} {%- endif %} {% endcall %} {%- endif %}