mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
feat(trace): 在请求链路追踪中记录并展示首字时间(TTFB)
将 first_byte_time_ms 添加到候选记录的 extra_data 中, 并在前端时间线组件中展示该指标。
This commit is contained in:
@@ -175,6 +175,13 @@
|
||||
{{ currentAttempt.finished_at ? formatTime(currentAttempt.finished_at) : '进行中' }}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="currentAttempt.extra_data?.first_byte_time_ms != null"
|
||||
class="info-item"
|
||||
>
|
||||
<span class="info-label">首字 (TTFB)</span>
|
||||
<span class="info-value mono">{{ formatLatency(currentAttempt.extra_data.first_byte_time_ms) }}</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="currentAttempt.key_name || currentAttempt.key_id"
|
||||
class="info-item"
|
||||
|
||||
Reference in New Issue
Block a user