Skip to content

Add OutputScope for output message#199

Merged
fpfp100 merged 2 commits intomainfrom
users/pefan/outputspan
Feb 11, 2026
Merged

Add OutputScope for output message#199
fpfp100 merged 2 commits intomainfrom
users/pefan/outputspan

Conversation

@fpfp100
Copy link
Contributor

@fpfp100 fpfp100 commented Feb 10, 2026

Summary

Adds a new OutputScope class for output message tracing, following the same patterns as existing scopes (InferenceScope, InvokeAgentScope, ExecuteToolScope).

Changes

  • OutputScope: New scope class for tracing output messages with parent span linking
  • Response contract: New interface for output message responses
  • OUTPUT_MESSAGES_OPERATION_NAME: New constant for the output_messages span operation
  • Exports: Added OutputScope and Response to the public API
  • Tests: Comprehensive test suite covering creation, message appending, parent span linking, dispose, empty messages, operation name, and agent details

Copilot AI review requested due to automatic review settings February 10, 2026 23:17
@fpfp100 fpfp100 requested a review from a team as a code owner February 10, 2026 23:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 OutputScope for output_messages spans and output message attribute recording.
  • Adds OUTPUT_MESSAGES_OPERATION_NAME constant 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.

@fpfp100 fpfp100 merged commit b1f0e4e into main Feb 11, 2026
7 checks passed
@fpfp100 fpfp100 deleted the users/pefan/outputspan branch February 11, 2026 17:06
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>
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.

5 participants