Repository navigation
Add one-shot OTEL configuration with endpoint validation - #79549
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This comment has been minimized.
This comment has been minimized.
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully!
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
There was a problem hiding this comment.
What this change does: It adds a command that checks an OpenTelemetry endpoint and saves export settings for selected GitHub targets. The check supports JSON and protobuf responses.
Should fix
- Reuse the existing protobuf wire decoder to reduce the custom parsing code, as noted inline.
Verdict: fix 1 first.
Lean: -10 lines possible.
Generated by ✂️ Ponytail Reviewer for #79549 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 185
Comment /ponytail to run again
🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic (>100 new lines in 📄 Draft ADR committed:
📋 What to do next
Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision. 📋 Michael Nygard ADR Format ReferenceAn ADR must contain these four sections to be considered complete:
|
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one blocking correctness issue in enterprise selected-target handling. The documented enterprise --visibility selected --selected <org> flow is rejected by the shared repository-selection validation before expansion.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~6 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical flaws can expose credentials to unintended collectors and bypass Go’s protection against executing binaries from relative PATH entries.
11 open issues
Preserve exec.ErrDot protection when rebuilding commands · New Prevent endpoint and header mismatches from partial overrides · New Prevent endpoint and header credentials from getting out of sync · New Reject or safely encode quotes and backslashes in endpoint URLs · New Check decoded endpoint queries for GitHub OAuth credentials · New Allow valid leading punctuation in repository names · New Preserve escaped paths when building the probe URL · New Reject authorization schemes the runtime discards · New Limit Sentry header normalization to known Sentry domains · New Reject partial-success responses in both JSON naming styles · New Include the target name in bulk-write and preflight errors · New
What changed in this PR
Adds gh aw env otel to configure default OpenTelemetry export for repositories, organizations, and an enterprise’s visible organizations.
Changes:
- Supports interactive or stdin-based bulk setup with protocol, metrics, and repository-access options.
- Probes endpoints before saving encrypted endpoint/header secrets and configuration variables.
- Adds command registration, unit coverage, and setup documentation.
| File | Description |
|---|---|
pkg/cli/env_otel_probe.go |
Validates URLs and headers; performs bounded OTLP endpoint checks. |
pkg/cli/env_otel_command.go |
Implements input, target expansion, preflight checks, and persistence. |
pkg/cli/env_otel_command_test.go |
Covers validation, credentials, target selection, and writes. |
pkg/cli/env_command.go |
Registers the env otel subcommand. |
docs/src/content/docs/reference/open-telemetry.mdx |
Documents setup options, validation behavior, and operational limits. |
Review effort: Max (adaptive)
|
@copilot run pr-finisher skill |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Visual regression check: docs previewBuilt docs were served on
Comparison is unavailable: no baseline is provisioned for this workflow, so no visual diff was made. Accessibility inspection (
|
|
@copilot merge main |
…ed-env-subcommand Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged
Merged |
|
@copilot fix ci failures |
|
@copilot merge main and fix dry-run unresolved credential-exposure concern |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "639c14764f23a7776e6075ebe5cd87a905c3c0fa",
"kind": "requested",
"schema_version": "1",
"state": "9142e8f22615661c4749f05432a2d2610a9d6b4b2042924dfc12d3998d1ad171",
"work": [
"49c80a00fb3786e9cd4801737bd50a4de83978035bb4a487a6bb6689f2c3cd03"
],
"workflow": "pr-sous-chef"
}
|
…ed-env-subcommand Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged main in |
Already addressed: |
Resolve paired-config conflicts by retaining the existing scalar OTLP contract, preserving upstream changes and regenerating workflow outputs. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>



Add
gh aw env otelas an operational command that validates OTEL inputs, tests collector authentication, and configures existing GitHub Actions settings.Scope
GH_AW_DEFAULT_OTLP_ENDPOINTandGH_AW_DEFAULT_OTLP_HEADERSscalar secrets, plusOTEL_EXPORTER_OTLP_PROTOCOLandGH_AW_OTEL_METRICSvariables.No compiler, runtime, specification, or generated-workflow changes. The command uses the existing OTEL configuration contract and does not compile workflows or introduce a JSON configuration secret.
gh aw env otel --repo my-org/one --repo my-org/two \ --endpoint https://collector.example.com \ --protocol http/protobuf --headers-stdin --yes < otlp-headers.txtThe probe verifies route/authentication acceptance, not span ingestion or connectivity from GitHub runners. Organization setup rejects partial repository secret overrides and changes to existing secret visibility; avoid concurrent settings changes and workflow starts during configuration.