← Back to Pull requests

Add process context propagation guidance #5421

Open
unknown opened this pull request with 268 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 09, 2026 19:24 UTC
Author

Fixes https://github.com/open-telemetry/opentelemetry-specification/issues/5398

Motivation

Commands, CI jobs, and test runners can propagate context through process environments using existing propagators and carriers. Instrumentation can automate this at invocation and child-launch boundaries, but accepting incoming context and forwarding baggage across trust boundaries needs an explicit application/operator decision.

Provide guidance for opt-in process instrumentation without introducing persistent SDK fallback or changing existing span parent-selection semantics.

Changes

  • Add Alpha, non-normative instrumentation guidelines for agents, framework integrations, test runners, and wrappers.

  • Recommend automatic process propagation disabled until explicitly enabled, independently of general telemetry collection. Within an enabled integration, default to incoming parent mode and enabled child-process injection, with independent controls.

  • Keep configuration with instrumentation, allowing language- and technology-specific controls without defining new SDK properties or portable option names.

  • Describe parent, link, and none modes, invocation scope, application parent/root precedence, and baggage inheritance, including the risk of restoring removed startup values.

  • Explain that valid incoming context does not authenticate its sender and that configured samplers, propagators, and instrumentation determine sampling and downstream baggage effects.

  • Cover configured propagators, normalized environment fields, independent child-environment copies, and stale-field cleanup.

  • Link to manual propagation using existing propagator and Context APIs. Explicitly leave persistent fallback and existing parent-selection rules outside this guidance.
  • Related work:

  • .NET process instrumentation

  • Go environment-carrier examples
  • Configuration discussion: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/pull/5660#discussion_r4523361422

    Diff: 268 lines (+201 / -67) across 3 files Reviewer: pellared Review duration: 7424m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    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%
    46%
    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.335
    Real PR Conversation Timeline
    1 comments
    "Review active on #5421"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    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: 46.7% · Lower = rushed or shallow review
    46.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: 21.0% · Safe to merge
    21.0%