[Metric] Fix the computation of e2e_total_tokens (#519)

Signed-off-by: gcanlin <canlinguosdu@gmail.com>
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
Canlin GuoandHongsheng Liu authored and GitHub committed 2026-01-01 00:13:17 +08:00
1 parent 680742bc33
commit 4f8cb95571
4 files changed
+47 -11

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ def _setup_log_mocks(monkeypatch):
def on_stage_metrics(self, stage_id, req_id, metrics):
pass
def on_finalize_request(self, stage_id, req_id, engine_outputs, start_ts):
def on_finalize_request(self, stage_id, req_id, start_ts):
self.e2e_done.add(req_id)
def on_forward(self, from_stage, to_stage, req_id, size_bytes, tx_ms, use_shm):