Skip to content

Export selector route refinements#2523

Open
MrAlias wants to merge 1 commit into
open-telemetry:mainfrom
MrAlias:codex/config-v2-selector-route-export
Open

Export selector route refinements#2523
MrAlias wants to merge 1 commit into
open-telemetry:mainfrom
MrAlias:codex/config-v2-selector-route-export

Conversation

@MrAlias

@MrAlias MrAlias commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Export per-selector HTTP route overrides into capture.rules[].refine.http.routes.
  • Preserve incoming and outgoing route patterns using the existing direction-aware config v2 shape.
  • Replace the stale Config v2 steel-thread landing plan #2251 TODO with coverage in the advanced capture parity test.

Validation

  • go test ./internal/config/convert
  • go test ./internal/config/...
  • make check-config-v2-parity

Selector route overrides were importable in config v2, but RuntimeToV2
still skipped them because the export path only emitted export-mode
refinements. This left a stale TODO and made round-trip coverage
depend on manually authored v2 input.

Emit incoming and outgoing selector route patterns in the rule HTTP
refinement shape so exported configs preserve per-selector route
overrides. Update the advanced capture parity test to assert the
direction-aware fields.
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.17%. Comparing base (b9fe20e) to head (0e7e111).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2523      +/-   ##
==========================================
+ Coverage   69.07%   69.17%   +0.09%     
==========================================
  Files         348      348              
  Lines       47314    47320       +6     
==========================================
+ Hits        32683    32734      +51     
+ Misses      12582    12523      -59     
- Partials     2049     2063      +14     
Flag Coverage Δ
integration-test 51.27% <ø> (+0.40%) ⬆️
integration-test-arm 27.17% <ø> (+0.87%) ⬆️
integration-test-vm-5.15-lts ?
integration-test-vm-6.18-lts ?
k8s-integration-test 35.67% <ø> (-0.51%) ⬇️
oats-test 35.26% <ø> (-0.32%) ⬇️
unittests 63.54% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MrAlias MrAlias marked this pull request as ready for review June 26, 2026 21:19
@MrAlias MrAlias requested a review from a team as a code owner June 26, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant