Skip to content

Support S2S option for exporter - #123

Merged
PengF (fpfp100) merged 2 commits into
mainfrom
users/pefan/s2ssupport
Dec 22, 2025
Merged

Support S2S option for exporter#123
PengF (fpfp100) merged 2 commits into
mainfrom
users/pefan/s2ssupport

Conversation

@fpfp100

@fpfp100 PengF (fpfp100) commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Support S2S option for exporter

@fpfp100
PengF (fpfp100) marked this pull request as ready for review December 19, 2025 23:01
@fpfp100
PengF (fpfp100) requested a review from a team as a code owner December 19, 2025 23:01
Copilot AI review requested due to automatic review settings December 19, 2025 23:01

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 support for Service-to-Service (S2S) endpoint routing in the Agent365 observability exporter, allowing telemetry data to be sent to a different API path when needed.

Key Changes:

  • Introduced a new useS2SEndpoint boolean option in Agent365ExporterOptions
  • Modified endpoint path selection logic to use /maven/agent365/service/agents/{agentId}/traces when S2S is enabled
  • Added test coverage for the S2S endpoint feature with discovery flow

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/agents-a365-observability/src/tracing/exporter/Agent365ExporterOptions.ts Added useS2SEndpoint property with documentation to control S2S endpoint path selection
packages/agents-a365-observability/src/tracing/exporter/Agent365Exporter.ts Implemented conditional endpoint path logic based on useS2SEndpoint flag, updated class documentation, and fixed import formatting
tests/observability/core/agent365-exporter.test.ts Updated existing test expectation and added new test case for S2S endpoint with discovery flow

Comment thread tests/observability/core/agent365-exporter.test.ts Outdated
Comment thread tests/observability/core/agent365-exporter.test.ts Outdated
@fpfp100
PengF (fpfp100) merged commit 561d66c into main Dec 22, 2025
7 checks passed
@fpfp100
PengF (fpfp100) deleted the users/pefan/s2ssupport branch December 22, 2025 17:42
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