@@ -144,7 +144,7 @@ parsing, capability details, or token persistence as separate operations.
144144
145145The tray exports native chat lifecycle diagnostics when an endpoint is configured:
146146
147- - traces: ` openclaw.chat.turn ` , ` openclaw.chat.send ` ,
147+ - traces: ` openclaw.chat.turn ` , ` openclaw.chat.queue.wait ` , ` openclaw.chat. send` ,
148148 ` openclaw.chat.response.wait ` , ` openclaw.chat.response.receive ` ,
149149 ` openclaw.chat.history.load ` , and ` openclaw.chat.history.backfill `
150150- counters: ` openclaw.chat.turns ` , ` openclaw.chat.send.attempts ` ,
@@ -210,12 +210,19 @@ event types do not start or transition response phases. The `other` output value
210210is reserved for future event types only after they are explicitly reviewed and
211211classified as visible response output.
212212
213- Queue wait is cumulative local queue dwell across all queue/retry segments. The
214- tray captures each segment at queue insertion or requeue, adds it when dispatch
215- begins, and emits the total when the turn completes so it can carry the final
216- outcome. Direct sends accepted on their first attempt do not emit queue-wait
217- measurements. Consequently, the metric timestamp is the turn completion time, not
218- the instant queue congestion occurred.
213+ Each contiguous local queue or requeue period emits an
214+ ` openclaw.chat.queue.wait ` sibling span under the turn. A segment that reaches
215+ dispatch completes with ` outcome=success ` ; a segment still queued when the turn
216+ terminates uses the turn's final outcome. Deferred sends therefore show multiple
217+ queue-wait spans rather than one span that incorrectly includes intervening send
218+ attempts.
219+
220+ The queue-wait duration metric remains cumulative across all queue/retry segments.
221+ The tray adds each segment when dispatch begins and emits the total when the turn
222+ completes so it can carry the final outcome. Direct sends accepted on their first
223+ attempt emit neither queue-wait spans nor queue-wait measurements. Consequently,
224+ the metric timestamp is the turn completion time, not the instant queue congestion
225+ occurred.
219226
220227Full transcript loads and targeted remote-message backfills are separate
221228operations. Full loads use source ` initial ` or ` forced ` . Backfills use the finite
0 commit comments