Add stdout diagnostics OTEL log exporter#94561
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 19, 2026, 1:57 AM ET / 05:57 UTC. Summary PR surface: Source +100, Tests +658, Docs +14, Config 0, Generated 0, Other +206. Total +978 across 27 files. Reproducibility: not applicable. as a bug reproduction; this is a feature PR. The relevant behavior evidence is after-patch terminal QA Lab proof for stdout-only and dual exporter modes plus focused tests. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge after maintainers explicitly accept the new diagnostics config/log-shape contract, with OTLP preserved as the default and the shared redaction plus QA proof kept intact. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction; this is a feature PR. The relevant behavior evidence is after-patch terminal QA Lab proof for stdout-only and dual exporter modes plus focused tests. Is this the best way to solve the issue? Yes, pending maintainer product acceptance; the runtime change stays inside the diagnostics-otel owner boundary and reuses the existing redacted log-record builder instead of adding a parallel sanitizer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 82ae81f3bf1d. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +100, Tests +658, Docs +14, Config 0, Generated 0, Other +206. Total +978 across 27 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
7c29abf to
0455847
Compare
This comment has been minimized.
This comment has been minimized.
5442761 to
3044e8b
Compare
4eca40d to
dd9e3f8
Compare
Summary
diagnostics.otel.logsExporterwithotlp,stdout, andbothmodes while keeping OTLP as the default.What Changed
extensions/diagnostics-otel/src/service.tsnow builds each diagnostic log record once and sends it to the selected sink: OTLP, stdout JSONL, or both.src/config/*and generated config docs now exposediagnostics.otel.logsExporter.test/e2e/qa-lab/runtime/qa-otel-smoke-runtime.tsmaps--logs-exporterto a matching QA scenario and rejects explicit mismatches.--scenariovalues still work; only mismatches among the built-in OTEL smoke scenarios are rejected.qa/scenarios/runtime/otel-stdout-log-smoke.yamlandqa/scenarios/runtime/otel-both-log-smoke.yamlpreserve sanitized gateway stdout artifacts so the wrapper can verify real emitted JSONL records.Proof
node --import tsx test/e2e/qa-lab/runtime/qa-otel-smoke-runtime.ts --logs-exporter stdout --output-dir .artifacts/native-review-otel-stdout-custom-scenario-fixspans=17,metrics=24,logs=0,stdoutLogs=16,traces=3,metricRequests=5,logRequests=0.node --import tsx test/e2e/qa-lab/runtime/qa-otel-smoke-runtime.ts --logs-exporter both --output-dir .artifacts/native-review-otel-both-scenario-fixspans=17,metrics=24,logs=16,stdoutLogs=16,traces=3,metricRequests=5,logRequests=4.generate-base-config-schema --checkandgenerate-config-doc-baseline --checkpassed.oxfmt,oxlint,tsgoextension/test lanes, andgit diff --checkpassed.Verification