feat(telemetry): forward OTEL env vars to all managed workflow agents - #5531
Conversation
Setting OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_HEADERS,
and OTEL_RESOURCE_ATTRIBUTES now produces traces for all agents on your
system (triage, code, review, fix, retro, prioritize, harness), including
the ones dispatched via triggers. Previously only triage exported traces.
The env vars are added to every agent step in reusable-dispatch.yml
(per-repo) and all reusable-{stage}.yml files (per-org), with the secret
forwarded through scaffold caller workflows. The distributed tracing guide
is updated to reflect this, and the OTEL threading test is expanded to
cover all stages.
Closes #5528
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Hector Martinez <hemartin@redhat.com>
PR Summary by QodoForward OTEL env/secret to all managed workflow agent stages
AI Description
Diagram
High-Level Assessment
Files changed (13)
|
|
🤖 Finished Review · ✅ Success · Started 2:11 PM UTC · Completed 2:28 PM UTC |
Site previewPreview: https://e7deb826-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review by Qodo
1.
|
waynesun09
left a comment
There was a problem hiding this comment.
3-agent review squad pass (2 Claude-based, 1 Grok-based) — no Critical/High findings. The secret-threading chain (OTEL_EXPORTER_OTLP_TRACES_HEADERS) was verified complete end-to-end for both install-mode chains across all 6 newly-covered stages, with no logging exposure, injection path, or undeclared-secret gap.
One MEDIUM was raised — the updated doc line presents "harness" OTEL coverage as available across all install modes, but harness-run/harness-dispatch currently only exist for the per-repo install path via reusable-dispatch.yml. Non-blocking given per-org mode is being deprecated, so this scoping nuance won't matter going forward.
Two LOW nits (a couple of test blind spots already closed by sibling tests, and a missing description: field on 5 new secret declarations for consistency with reusable-triage.yml) are cosmetic and not blocking either.
Approving.
ReviewFindingsMedium
The code change itself is clean across all review dimensions. The three OTEL env vars are correctly threaded through all agent steps using the same Labels: PR modifies CI workflow files under .github/workflows/, dispatch-related reusable workflows, scaffold templates, and infrastructure documentation |
|
🤖 Finished Retro · ✅ Success · Started 3:07 PM UTC · Completed 3:20 PM UTC |
Retro: PR #5531 — Forward OTEL env vars to all managed workflow agentsTimeline
AssessmentThis workflow went well overall. The PR was a mechanical propagation of three OTEL env vars across 13 workflow and scaffold files — straightforward but security-sensitive ( The one pain point was the code agent failure: $4.97 and ~12 minutes wasted producing a valid patch that could never be pushed. The post-code script misclassified the GitHub permission rejection as a non-fast-forward error and retried with Evidence for existing open issues (no new proposals needed)
Autonomy readinessThe review agent performed well on this mechanical cross-file change. Its assessment (code clean, protected-path requires human approval) was correct. The human reviewer's additions were all non-blocking: one MEDIUM about doc scoping nuance (harness OTEL coverage claim across install modes, non-blocking since per-org mode is deprecated), and two cosmetic LOWs. The human approval was warranted by the protected-path nature of the changes — no autonomy expansion is indicated for this class of change. |
Summary
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,OTEL_EXPORTER_OTLP_TRACES_HEADERS, andOTEL_RESOURCE_ATTRIBUTESnow produces traces for all agents on your system (triage, code, review, fix, retro, prioritize, harness), including the ones dispatched via triggers. Previously only triage exported traces.TestOTELHeadersSecretThreadingto cover all stages and added the OTEL secret toTestReusableWorkflowsShareCommonInputsso cross-stage drift is caught automatically.Test plan
TestOTELHeadersSecretThreadingpasses with 14 subcases (all stages, both install modes)TestReusableWorkflowsShareCommonInputspasses with OTEL secret incommonSecretsTestWorkflowCallInputAlignmentpasses (scaffold callers forward the new optional secret)Closes #5528
🤖 Generated with Claude Code