← Back to Pull requests

fix: propagate traceparent in hello tutorials #1400

Open
unknown opened this pull request with 218 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 29, 2026 13:50 UTC
Author

Description

Preserve distributed trace context in the Hello World and Hello Kubernetes Node applications by forwarding the incoming traceparent header when saving orders through Dapr's state API.

Omit the header when it is absent, and retain existing payloads and persistence error handling. Update the walkthroughs and add dependency-free handler regression tests with executable README STEP blocks.

Issue reference

Closes #650.

Checklist

  • Updated the relevant README and executable STEP annotations

  • Added and ran isolated regression tests

  • DCO sign-off included in the commit

  • Full tutorial validation with Dapr and Kubernetes
  • Validation

  • Passed all six isolated regression scenarios covering header propagation, absent headers, and persistence failures across both tutorials.

  • Passed syntax checks for both app.js files and git diff --check.

  • Hello World passed manual integration checks with Dapr 1.19.1, Redis 7, and Zipkin 3: state readback, requests with and without traceparent, and HTTP 500 during a Redis outage.

  • In a temporary kind Kubernetes cluster with Dapr 1.19.1, Python invoked Node and orders were persisted and read back. Zipkin confirmed a linked Python → Node → state trace.

  • The original Node Dockerfile built successfully. Kubernetes integration checks used unchanged application code on node:20-alpine, with Redis, Zipkin, and sampling configuration provisioned directly.
  • Remaining validation: Full make validate / Mechanical Markdown and multi-app run were not executed. The manual integration checks do not replace full tutorial validation.

    CI: The six workflows currently await maintainer approval.

    Prepared with AI assistance; validation limits are stated above.

    Diff: 218 lines (+163 / -55) across 2 files Reviewer: alicejgibbons Review duration: 46876m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 218 lines diff across 2 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.322
    Real PR Conversation Timeline
    1 comments
    "Review active on #1400"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.7% (MEDIUM) · Higher = larger blast radius
    43.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.7% · Lower = rushed or shallow review
    44.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.2% · Safe to merge
    24.2%