mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2697] [Engine] serve: opt-in OTLP traces of every /v1 request, and the docs pages 0.1.41 left uncovered #4218
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2697
Author: @Buddychek
Created: 10/15/2026
Status: 🔄 Open
Base:
main← Head:docs/trace-text-accuracy📝 Commits (10+)
bfedda9Local snapshot of D:/Strata-main: upstream mainfb58e0dplus local drift; no upstream content overwritten.bcfb494docs: the 0.1.41 switches that no page listed4ce1eecdocs: markdown hygiene in DETAILS.md - spaced table delimiters, code fences with a language, the tier figure as a markdown image0a927a2docs: the 0.1.41 watchdog, body-cap and batch-groups behaviors no page hada5bee64docs: the three new troubleshooting rows match the table's two columnsce8ce05docs: card order on AMD/Linux too (KFD topology SIMDs x clock); STRATA_DUMP_FIRST_LOGITS next to the research hooks8d88345serve: opt-in OTLP traces of every /v1 request; CMake CMP0169 pinc5a6902docs: the 0.1.41 opt-in OTLP tracing no page covered; markdown hygienee12dd3edocs: markdown hygiene in the staged rows; .gitignore for .history and .github/agents9713853serve: make the OTLP tracing tests run; fix the three bugs they then found📊 Changes
28 files changed (+1908 additions, -108 deletions)
View changed files
📝
.gitignore(+12 -0)📝
SECURITY.md(+9 -0)📝
bench/bench_vs_llama.py(+182 -52)➕
bench/machine-4090.json(+34 -0)📝
docs/BATCHING.md(+6 -5)📝
docs/DETAILS.md(+124 -18)📝
docs/MULTI_GPU.md(+7 -5)📝
docs/SECOND_GPU.md(+21 -0)📝
docs/TROUBLESHOOTING.md(+15 -0)➕
evals/README.md(+66 -0)➕
evals/__init__.py(+1 -0)➕
evals/queries.jsonl(+12 -0)➕
evals/run_eval.py(+389 -0)➕
evals/test_eval.py(+187 -0)📝
serve/runconfig.py(+11 -0)📝
serve/server.py(+53 -20)📝
serve/telemetry.py(+8 -5)➕
serve/test_tracing.py(+412 -0)➕
serve/tracing.py(+334 -0)📝
setup.sh(+0 -0)...and 8 more files
📄 Description
Problem and result
The opt-in OTLP tracing of every
/v1request (0.1.41) has no docs page, and the pages that touch it say things the code does not do. The branch carries the tracing feature code (serve/tracing.py,serve/test_tracing.py, the server wiring) plus the docs that match it, and the eval/bench harness hooks that link a run to the server's own trace.After:
--trace-otlpis opt-in (off by default, the default path is byte-identical), traced requests carry no prompt text (the promise and its exception for errored requests are documented), the anchor floor and the half-second quiet drain are documented, and the docs pages match the code.Related discussion
Closed in the 0.2.0-beta tracker reset; merged with current main and re-verified per the reset note. Supersedes #2003 and #1816 (closed as subsets). The CMP0169 pin and the test_winjob fix were dropped from this PR — they are #3015's and #3017's dedicated changes (AGENTS.md one change per PR).
Approach
Feature code:
serve/tracing.py(OTLP exporter, span builder), server wiring behind--trace-otlp,serve/telemetry.pyandserve/runconfig.pyplumbing. Docs: DETAILS, BATCHING, MULTI_GPU, SECOND_GPU, TROUBLESHOOTING, SECURITY. Harness:evals/opt-in--trace,bench/bench_vs_llama.pytrace linking.Validation
Passed, merged with 0.2.0-beta main (
e88ee39d, merge commit8f066336), Windows 11, Python 3.15, RTX 4090:python -m unittest serve.test_tracing→ 14/14 OK.python -m unittest evals.test_eval→ 15/15 OK.python -m unittest serve.test_server→ 341 OK (3 skipped).Not run: a real OTLP collector end-to-end; CUDA/HIP/SYCL engine builds (no engine code touched).
Limits
Opt-in only: with
--trace-otlpunset the server path is unchanged. Traces carry no prompt text; the documented exception is errored requests. SYCL scripts in this branch are packaging scripts, not engine code.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.