feat(nitro): add Nitro v3 / h3 v2 tracing via TracingChannel #8716
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 404 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8716"
general
weight: 0.35
crysmags
What does this PR do?
Adds Nitro v3 / h3 v2 tracing via h3's native
TracingChannel("h3.request").nitro.server.requestspans with method, URL, route pattern, status code, errors, and distributed trace parenting.H3and Nitro's productionH3Coreruntime path.filter, route/resource naming, status/error handling, and request hooks.Motivation
Nitro v3 and h3 v2 power Nuxt and other meta-framework server runtimes. h3 v2 is ESM-only, so native tracing-channel support is the stable instrumentation path.
Verification
Local checks:
./node_modules/.bin/eslint --max-warnings 0 <changed nitro files>- passed.env -u OTEL_TRACES_EXPORTER -u OTEL_LOGS_EXPORTER -u OTEL_METRICS_EXPORTER ./node_modules/.bin/mocha packages/datadog-plugin-nitro/test/index.spec.js- passed, 2 passing.env -u OTEL_TRACES_EXPORTER -u OTEL_LOGS_EXPORTER -u OTEL_METRICS_EXPORTER /Users/william.conti/.nvm/versions/node/v22.17.0/bin/node ./node_modules/mocha/bin/mocha.js --timeout 60000 packages/datadog-plugin-nitro/test/integration-test/client.spec.js- passed, 12 passing.env -u OTEL_TRACES_EXPORTER -u OTEL_LOGS_EXPORTER -u OTEL_METRICS_EXPORTER PLUGINS=nitro PATH=/Users/william.conti/.nvm/versions/node/v22.17.0/bin:$PATH /Users/william.conti/.nvm/versions/node/v22.17.0/bin/npm run test:plugins:ci- passed, 14 passing.git diff --check -- <changed nitro files>- passed.Live Datadog verification:
7.78.0using servicenitro-h3-live-pr8716, envorg2-live-verify, versionf69fdacef-20260714-184518.status, returnedResponsewith 503 under customvalidateStatus, query obfuscation, configured request/response headers, thrown error, unmatched h3 route, NitroH3Coreruntime path, and pluginfilterdrop behavior.- Parameterized route trace (
resource: GET /users/:id,http.route: /users/:id): https://app.datadoghq.com/apm/trace/6a56bbfe0000000043e26452e03a4e5e?graphType=flamegraph&shouldShowLegend=true&spanID=4891582452389793374&timeHint=1784069118650.0015&trace=6a56bbfe0000000043e26452e03a4e5e4891582452389793374&traceQuery=- Header/query trace (
resource: GET /headers,http.route: /headers, configured request/response headers, query obfuscation): https://app.datadoghq.com/apm/trace/6a56bbfe000000007c9eef4da2735392?graphType=flamegraph&shouldShowLegend=true&spanID=8979877823740334994&timeHint=1784069118657.0696&trace=6a56bbfe000000007c9eef4da27353928979877823740334994&traceQuery=- Nitro
H3Coreruntime route-miss trace (resource: GET, nohttp.route, 404): https://app.datadoghq.com/apm/trace/6a56bbfe0000000005140e27304d88f3?graphType=flamegraph&shouldShowLegend=true&spanID=365933031200753907&timeHint=1784069118664.0007&trace=6a56bbfe0000000005140e27304d88f3365933031200753907&traceQuery=