Repository navigation
feat(tracing): add request and first-token timestamps - #1190
Merged
Merged
Conversation
yaozheng-fang
approved these changes
Oct 28, 2026
Contributor
|
@wujiaming-ai @yaozheng-fang 请按 APMPlus 规范补齐下面的属性和指标:
TTFT 是单次 LLM 流式请求开始到首个输出 token 到达的耗时。可以基于本次采集的模型请求开始时间和首 Token 时间计算: 目前只记录了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Model traces currently lose the first generated delta's receipt time, preventing A360 from separating request preprocessing from model first-output latency. This change adds request-start, model SDK request-start, and first-token timestamps to model spans and existing trace exports/dumps.
Validation
23014771; no added coverage exclusions.origin/main.cn-beijingusingdoubao-seed-2-1-pro-260628: Chat and Responses streaming/non-streaming, plus concurrent Chat/Responses streaming. All nine changed production files matched the deployed branch wheel's SHA256. Verified exported timestamps, SDK mode/status, parent relationships and request isolation. The isolated Runtime was deleted./web/system-info. This fixes an order-dependent test while preserving production concurrency and every existing state/endpoint assertion. Three targeted cases and all 189 affected cases passed; production code and the cloud-validated source hashes are unchanged. See the bilingual CI repair design and evidence.Design and verification (English) · 需求与验证结论(中文)