{% htmxfragment "header" %} {% if trace.share_id and not is_share_view|default(False) %}
{{ request.get_host() }}{{ url('observer:trace_shared', trace.share_id) }}
{% endif %}

{{ trace.root_span_name }}

{% endhtmxfragment %}
{% if trace.summary %} {{ trace.summary }} {% else %}
{% endif %}
Trace ID: {{ trace.trace_id }}
{% if trace.request_id or trace.user_id or trace.session_id or trace.app_version %}
{% if trace.request_id %}
Request: {{ trace.request_id }}
{% endif %} {% if trace.user_id %}
User: {{ trace.user_id }}
{% endif %} {% if trace.session_id %}
Session: {{ trace.session_id }}
{% endif %} {% if trace.app_version %}
App Version: {{ trace.app_version }}
{% endif %}
{% endif %}

Spans ({{ trace.spans.count() }}) + Logs ({{ trace.logs.count() }})

Started: {{ trace.start_time|localtime|strftime("%b %-d, %-I:%M %p") }}
{% for event in trace.get_timeline_events() %} {% if event.type == 'span' %} {% with span = event.instance %} {% include "observer/partials/span.html" %} {% endwith %} {% elif event.type == 'log' %} {% with log = event.instance %} {% include "observer/partials/log.html" %} {% endwith %} {% endif %} {% else %}
No spans or logs...
{% endfor %}