[PR #2697] [Engine] serve: opt-in OTLP traces of every /v1 request, and the docs pages 0.1.41 left uncovered #4218

Open
opened 2026-11-07 15:34:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 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+)

  • bfedda9 Local snapshot of D:/Strata-main: upstream main fb58e0d plus local drift; no upstream content overwritten.
  • bcfb494 docs: the 0.1.41 switches that no page listed
  • 4ce1eec docs: markdown hygiene in DETAILS.md - spaced table delimiters, code fences with a language, the tier figure as a markdown image
  • 0a927a2 docs: the 0.1.41 watchdog, body-cap and batch-groups behaviors no page had
  • a5bee64 docs: the three new troubleshooting rows match the table's two columns
  • ce8ce05 docs: card order on AMD/Linux too (KFD topology SIMDs x clock); STRATA_DUMP_FIRST_LOGITS next to the research hooks
  • 8d88345 serve: opt-in OTLP traces of every /v1 request; CMake CMP0169 pin
  • c5a6902 docs: the 0.1.41 opt-in OTLP tracing no page covered; markdown hygiene
  • e12dd3e docs: markdown hygiene in the staged rows; .gitignore for .history and .github/agents
  • 9713853 serve: 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 /v1 request (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-otlp is 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.

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.py and serve/runconfig.py plumbing. Docs: DETAILS, BATCHING, MULTI_GPU, SECOND_GPU, TROUBLESHOOTING, SECURITY. Harness: evals/ opt-in --trace, bench/bench_vs_llama.py trace linking.

Validation

Passed, merged with 0.2.0-beta main (e88ee39d, merge commit 8f066336), 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-otlp unset 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2697 **Author:** [@Buddychek](https://github.com/Buddychek) **Created:** 10/15/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/trace-text-accuracy` --- ### 📝 Commits (10+) - [`bfedda9`](https://github.com/Niko1221/Strata/commit/bfedda94e580cb6108f276bf467af33bf9bb514e) Local snapshot of D:/Strata-main: upstream main fb58e0d plus local drift; no upstream content overwritten. - [`bcfb494`](https://github.com/Niko1221/Strata/commit/bcfb4941228407c6c0292902638d125d17074cee) docs: the 0.1.41 switches that no page listed - [`4ce1eec`](https://github.com/Niko1221/Strata/commit/4ce1eeca79b1b56284931cccbbd88b8c64ac55dd) docs: markdown hygiene in DETAILS.md - spaced table delimiters, code fences with a language, the tier figure as a markdown image - [`0a927a2`](https://github.com/Niko1221/Strata/commit/0a927a2e003cf90f534d4c81347b32dbf06382e9) docs: the 0.1.41 watchdog, body-cap and batch-groups behaviors no page had - [`a5bee64`](https://github.com/Niko1221/Strata/commit/a5bee64c663915784fc01e849ca92449f33e70a1) docs: the three new troubleshooting rows match the table's two columns - [`ce8ce05`](https://github.com/Niko1221/Strata/commit/ce8ce05c2c2207460dfc33e62a9a63704eb444cf) docs: card order on AMD/Linux too (KFD topology SIMDs x clock); STRATA_DUMP_FIRST_LOGITS next to the research hooks - [`8d88345`](https://github.com/Niko1221/Strata/commit/8d88345a11ea9aa0c5d9b88d5e727529258d4aed) serve: opt-in OTLP traces of every /v1 request; CMake CMP0169 pin - [`c5a6902`](https://github.com/Niko1221/Strata/commit/c5a69020387926e832ee2562b5beaee0be927aa9) docs: the 0.1.41 opt-in OTLP tracing no page covered; markdown hygiene - [`e12dd3e`](https://github.com/Niko1221/Strata/commit/e12dd3e59f545c8db24947c7803f6401f8b7f71f) docs: markdown hygiene in the staged rows; .gitignore for .history and .github/agents - [`9713853`](https://github.com/Niko1221/Strata/commit/97138535e341f873f770adadc382af1cfba9bc17) serve: make the OTLP tracing tests run; fix the three bugs they then found ### 📊 Changes **28 files changed** (+1908 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `.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_ </details> ### 📄 Description ### Problem and result The opt-in OTLP tracing of every `/v1` request (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-otlp` is 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.py` and `serve/runconfig.py` plumbing. Docs: DETAILS, BATCHING, MULTI_GPU, SECOND_GPU, TROUBLESHOOTING, SECURITY. Harness: `evals/` opt-in `--trace`, `bench/bench_vs_llama.py` trace linking. ### Validation Passed, merged with 0.2.0-beta main (`e88ee39d`, merge commit `8f066336`), 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-otlp` unset 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4218
No description provided.