tracer, ebpf: record the OTEL_CTX header address and refresh from it #111
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 lines diff across 2 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.311
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #111"
general
weight: 0.35
theomagellan
Part 2 of 5. Together, these PRs refresh a process's OTEL_CTX context from the header address that its publisher announces, instead of resynchronizing the whole process each time.
1. #110 processmanager: add a process context refresh
2. This PR: tracer, ebpf: record the OTEL_CTX header address and refresh from it
3. #112 ebpf: recognize OTEL_CTX announcements by the header signature
4. #113 prctl: stop resynchronizing on OTEL_CTX
5. #114 ebpf: remove the unused PRIORITY rate-limit action
What
otel_ctx_eventshash map, keyed by tgid. If several threads of a process announce before the next drain, the map keeps the last address.CONFIG_ANON_VMA_NAME, and memfd-backed headers can't be named before Linux 6.2. User space checks the header anyway.RefreshProcessContext.NumOtelCtxEventsandOtelCtxEventsErr(failed map updates).