Repository navigation
Export sparse model-routing attributes to OpenTelemetry - #67240
Conversation
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Classification labels need fixed enum validation to prevent prompt-derived or high-cardinality telemetry values.
1 open finding
What changed in this PR
Exports sparse model-routing metadata on agent conclusion spans and documents the telemetry contract.
Changes:
- Adds session-first routing summary resolution with metadata and proxy-log fallbacks.
- Emits allow-listed routing attributes and adds coverage for routing scenarios.
- Documents routing attributes, scope, exclusions, and deferred classifier cost.
| File | Description |
|---|---|
actions/setup/js/model_attribution.cjs |
Resolves routing summaries from available sources. |
actions/setup/js/model_attribution.test.cjs |
Tests summary resolution and fallbacks. |
actions/setup/js/send_otlp_span.cjs |
Emits routing attributes on agent conclusion spans. |
actions/setup/js/send_otlp_span.test.cjs |
Tests span scope and emitted attributes. |
docs/src/content/docs/reference/open-telemetry-attributes.mdx |
Documents model-routing telemetry. |
🧠 Review effort: Balanced
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: 3f584e9
|
…routing-attributes Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
@copilot Please remove the work-queue changes from this PR: |
…routing-attributes Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Merged latest
Removed the |
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
|
Re-verified @copilot /pr-finisher |
…routing-attributes Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
|
@copilot #67092 has merged, so the classifier-cost attribution |
…routing-attributes Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Merged current |
|
Ready for review. Verified |
|
@copilot After the latest Root cause: Please change the precedence:
Then make sure @pelikhan please hold this one until that's fixed. |
Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Updated in |
|
@pelikhan Fixed in |

Export low-cardinality routing metadata once, on the agent conclusion span. Use agent-provenance session records when available, with
aw_info.jsonand proxy-log fallbacks; document the attributes and exclude prompt-derived details.gh-aw.model_routing.classifier_aicas separate fromgh-aw.aic, but defer emission while its attribution prerequisite remains open.