{% set span_start_offset = ((span.start_time - trace.start_time).total_seconds() * 1000) %} {% set start_percent = (span_start_offset / trace.duration_ms() * 100) if trace.duration_ms() > 0 else 0 %} {% set width_percent = (span.duration_ms() / trace.duration_ms() * 100) if trace.duration_ms() > 0 else 0 %}
{{ span.get_formatted_sql() }}
{% if span.sql_query_params %}
{{ value }}
{{ span.get_exception_stacktrace() }}
{{ value }}