feat(a365): propagate sessions and custom baggage - #242
Merged
Nikhil Navakiran (nikhilNava) merged 25 commits intoSep 23, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]> Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]> Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
Co-authored-by: Copilot <[email protected]> Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
Co-authored-by: Copilot <[email protected]> Copilot-Session: de36d0f9-7edb-42c8-bbca-75c9812c1c31
Co-authored-by: Copilot <[email protected]> Copilot-Session: de36d0f9-7edb-42c8-bbca-75c9812c1c31
Co-authored-by: Copilot <[email protected]> Copilot-Session: de36d0f9-7edb-42c8-bbca-75c9812c1c31
Co-authored-by: Copilot <[email protected]> Copilot-Session: 9ccc29b9-bf5d-4725-be3b-c4276b233c4c
Nikhil Navakiran (nikhilNava)
marked this pull request as ready for review
September 17, 2026 17:13
Nikhil Navakiran (nikhilNava)
requested review from
Jackson Weber (JacksonWeber),
Nev (MSNev),
ajmfehr,
Pujarini Mohapatra (biswapm),
Grant Harris (gwharris7),
Hector Hernandez (hectorhdzg),
Jeremy Voss (jeremydvoss),
Julio Carlos Menendez (juliomenendez),
Leighton Chen (lzchen) and
Radhika Gupta (rads-1996)
as code owners
September 17, 2026 17:13
Copilot started reviewing on behalf of
Nikhil Navakiran (nikhilNava)
September 17, 2026 17:14
View session
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Update the documentation to cover the full recognized GenAI operation set.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds session ID propagation to manual A365 scopes and opt-in custom baggage enrichment for recognized GenAI spans.
Changes:
- Propagates session IDs through inference and tool scopes.
- Adds custom baggage registration and span enrichment with precedence handling.
- Adds tests, API typechecks, documentation, changelog, and CI validation.
File summaries
| File | Reviewed changes |
|---|---|
tsconfig.baggage-public-api.json |
Focused public API typecheck configuration. |
test/typecheck/baggageBuilder.public-api.typecheck.ts |
Public API compatibility checks. |
test/internal/unit/a365/scopes.test.ts |
Session propagation coverage. |
test/internal/unit/a365/baggageBuilder.test.ts |
Custom baggage behavior coverage. |
test/internal/unit/a365/a365SpanProcessor.test.ts |
Span enrichment coverage. |
src/a365/scopes/InferenceScope.ts |
Session ID propagation. |
src/a365/scopes/ExecuteToolScope.ts |
Session ID propagation. |
src/a365/processors/A365SpanProcessor.ts |
Custom baggage span enrichment. |
src/a365/middleware/BaggageBuilder.ts |
Custom baggage registration and metadata handling. |
src/a365/constants.ts |
Internal metadata constant. |
package.json |
Public API typecheck script. |
CHANGELOG.md |
Feature release note. |
A365_DOCUMENTATION.md |
Session and custom baggage documentation; recognized operation coverage needs alignment. |
.github/workflows/pr-validation.yml |
CI typecheck validation. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Jackson Weber (JacksonWeber)
previously approved these changes
Sep 17, 2026
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: 8b01797b-8c8b-4ab7-aba9-96a5e7b7a5a0
Co-authored-by: Copilot <[email protected]> Copilot-Session: a44c89d4-df14-4be5-8c3c-938d09824bc9
Co-authored-by: Copilot <[email protected]> Copilot-Session: a44c89d4-df14-4be5-8c3c-938d09824bc9
Co-authored-by: Copilot <[email protected]> Copilot-Session: a44c89d4-df14-4be5-8c3c-938d09824bc9
Nikhil Navakiran (nikhilNava)
deleted the
feature/a365-custom-baggage
branch
September 23, 2026 15:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Parity with microsoft/opentelemetry-distro-dotnet#116. ETW logger changes are out of scope; JavaScript already omits obsolete tool-server-name data.