Skip to content

Add platformId to agent details for cross-platform observability - #103

Merged
PengF (fpfp100) merged 7 commits into
mainfrom
copilot/add-platform-id-to-agent-details
Dec 11, 2025
Merged

Add platformId to agent details for cross-platform observability#103
PengF (fpfp100) merged 7 commits into
mainfrom
copilot/add-platform-id-to-agent-details

Conversation

Copilot AI commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Add optional platformId property to agent details and telemetry

Co-authored-by: fpfp100 <126631706+fpfp100@users.noreply.github.com>
Copilot AI changed the title [WIP] Add platform ID to agent detail interfaces Add platformId to agent details for cross-platform observability Dec 5, 2025
Copilot AI requested a review from PengF (fpfp100) December 5, 2025 21:56
Comment thread packages/agents-a365-observability/src/tracing/contracts.ts Outdated
@fpfp100
PengF (fpfp100) marked this pull request as ready for review December 8, 2025 17:34
@fpfp100
PengF (fpfp100) requested a review from a team as a code owner December 8, 2025 17:34
Copilot AI review requested due to automatic review settings December 8, 2025 17:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds optional platformId support to agent details and telemetry infrastructure for cross-platform observability. The changes enable tracking of platform identifiers for both agents and caller agents across the telemetry stack.

  • Adds platformId property to AgentDetails and EnhancedAgentDetails interfaces
  • Integrates platformId into OpenTelemetry span attributes and baggage propagation
  • Provides comprehensive test coverage for the new functionality

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/agents-a365-observability/src/tracing/constants.ts Adds two new OpenTelemetry constants for agent and caller agent platform IDs
packages/agents-a365-observability/src/tracing/contracts.ts Adds optional platformId property to AgentDetails and EnhancedAgentDetails interfaces
packages/agents-a365-observability/src/tracing/scopes/OpenTelemetryScope.ts Sets platform ID tag when creating spans with agent details
packages/agents-a365-observability/src/tracing/scopes/InvokeAgentScope.ts Propagates caller agent platform ID in span attributes
packages/agents-a365-observability/src/tracing/middleware/BaggageBuilder.ts Adds fluent API methods for setting agent and caller agent platform IDs in baggage
packages/agents-a365-observability/src/tracing/processors/util.ts Includes platform ID constants in generic and invoke agent attribute arrays
tests/observability/core/scopes.test.ts Adds test cases verifying platform ID creation and propagation in scopes
tests/observability/core/BaggageBuilder.test.ts Adds test cases for platform ID baggage builder methods

Comment thread packages/agents-a365-observability/src/tracing/constants.ts Outdated
Comment thread packages/agents-a365-observability/src/tracing/middleware/BaggageBuilder.ts Outdated
Comment thread packages/agents-a365-observability/src/tracing/scopes/InvokeAgentScope.ts Outdated
Comment thread packages/agents-a365-observability/src/tracing/contracts.ts Outdated
@fpfp100
PengF (fpfp100) enabled auto-merge (squash) December 11, 2025 17:47
@fpfp100
PengF (fpfp100) merged commit 1c9d8d2 into main Dec 11, 2025
7 checks passed
@fpfp100
PengF (fpfp100) deleted the copilot/add-platform-id-to-agent-details branch December 11, 2025 17:52
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.

7 participants