← Back to file list
Trace: {{ filename }}
{% if resource_groups is defined and resource_groups|length > 0 %} {% for resource in resource_groups %}
Resource
{% if resource.attrs and resource.attrs|length > 0 %}
{% for attr in resource.attrs %}
{{ attr.key }}
: {{ attr.value.stringValue or attr.value.intValue or attr.value.boolValue or attr.value.doubleValue or attr.value or '' }}
{% endfor %}
{% else %}
(none)
{% endif %}
{% if resource.span_trees_by_trace is defined %} {% for trace_id, root_spans in resource.span_trees_by_trace.items() %}
Trace
{% macro render_span(span) %}
{%- for i in range(span.depth - 1) %} {%- endfor -%} {%- if span.depth > 0 %}└─ {%- endif -%}{{ span.name }}
({{ ((span.endTimeUnixNano|int - span.startTimeUnixNano|int) / 1000000)|round(2) }} ms)
{% if span.children %} {% for child in span.children %} {{ render_span(child) }} {% endfor %} {% endif %} {% endmacro %} {% for span in root_spans %} {{ render_span(span) }} {% endfor %}
{% endfor %} {% endif %}
{% endfor %} {% else %}
No span data available.
{% endif %}