Repository navigation
feat(trace): add bounded prefill diagnostics and isolate observation faults - #5200
Open
Reinerzhou wants to merge 1 commit into
Open
Reinerzhou wants to merge 1 commit into
Reinerzhou wants to merge 1 commit into
Conversation
…faults Accumulate PyTorch AR/ARSpec chunk, recomputation, cache reuse and scheduling summaries on the existing inference span. Freeze after accepted prefill completion and isolate accounting failures to the affected input. Keep OTLP export only, removing local JSONL output and its extra bookkeeping. Preserve request output, errors and cancellation when observation fails; keep subsequent requests observable. Retain existing span names and fields. Use the SDK's 5-second batch default and require complete SSE terminal framing. Update request_trace.md as the integration and implementation guide, and cover exported spans, native accounting and fault recovery in regressions.
This branch has not been deployed
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.
Summary
Add bounded Prefill diagnostics to the existing OTLP request trace. For each PyTorch AR/ARSpec request, the
inferencespan now summarizes chunk count and size, computed and recomputed tokens, local and external cache reuse, inter-chunk wait, preemption, and rescheduling. The summary is frozen only after the engine accepts Prefill completion. There are no per-chunk spans, tensor transfers for metrics, or GPU synchronizations.Keep instrumentation fail-open: an accounting failure omits only that input's incomplete summary and cannot replace inference output or prevent later requests from being traced. Complete SSE framing is required before a terminal event is accepted. Remove the independent JSONL writer and use the SDK's standard batch export defaults. Existing span names and correlation fields remain unchanged.
docs/en/serving/request_trace.mdis the integration and implementation guide for this behavior.Validation
python -m unittest discover -s tests/observability: 126 passed on the available serving environment after rebasing onto organizationmain.git diff --check upstream/main...HEAD: passed.