Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new OutputScope to the agents-a365-observability package to trace agent output messages (including explicit parent span linking), along with the supporting contract, constant, public exports, and Jest coverage.
Changes:
- Introduces
OutputScopeforoutput_messagesspans and output message attribute recording. - Adds
OUTPUT_MESSAGES_OPERATION_NAMEconstant and a new response contract for output messages. - Exposes the new scope/contract via the package public API and adds a dedicated test suite.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/observability/core/output-scope.test.ts | Adds Jest coverage for OutputScope creation, message recording, parent span linking, and attributes. |
| packages/agents-a365-observability/src/tracing/scopes/OutputScope.ts | Implements the new tracing scope for output message telemetry. |
| packages/agents-a365-observability/src/tracing/contracts.ts | Adds a new output-message response interface used by OutputScope. |
| packages/agents-a365-observability/src/tracing/constants.ts | Adds OUTPUT_MESSAGES_OPERATION_NAME for the new span operation. |
| packages/agents-a365-observability/src/index.ts | Exports OutputScope and the new response contract from the public API. |
packages/agents-a365-observability/src/tracing/scopes/OutputScope.ts
Outdated
Show resolved
Hide resolved
nikhilNava
approved these changes
Feb 11, 2026
threddy
approved these changes
Feb 11, 2026
fpfp100
added a commit
that referenced
this pull request
Feb 19, 2026
* Add OutputScope for output message tracing * comments --------- Co-authored-by: jsl517 <pefan@microsoft.com>
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
Adds a new OutputScope class for output message tracing, following the same patterns as existing scopes (InferenceScope, InvokeAgentScope, ExecuteToolScope).
Changes