Skip to content

[NodeJS SDK] Allow overwriting domain and scopes on the exporter base… - #133

Merged
PengF (fpfp100) merged 3 commits into
mainfrom
users/pefan/overwrite
Jan 7, 2026
Merged

[NodeJS SDK] Allow overwriting domain and scopes on the exporter base…#133
PengF (fpfp100) merged 3 commits into
mainfrom
users/pefan/overwrite

Conversation

@fpfp100

@fpfp100 PengF (fpfp100) commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

[NodeJS SDK] Allow overwriting domain and scopes on the exporter based on environment variables


This PR adds support for overriding the observability domain and authentication scopes via environment variables for internal development and testing scenarios.

Introduces A365_OBSERVABILITY_DOMAIN_OVERRIDE environment variable to override the default Agent365 service endpoint
Introduces A365_OBSERVABILITY_SCOPES_OVERRIDE environment variable to override the default authentication scopes
Adds comprehensive test coverage for both override mechanisms

Copilot AI review requested due to automatic review settings January 6, 2026 21:47
@fpfp100
PengF (fpfp100) requested review from a team as code owners January 6, 2026 21:47

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 overriding the observability domain and authentication scopes via environment variables for internal development and testing scenarios.

  • Introduces A365_OBSERVABILITY_DOMAIN_OVERRIDE environment variable to override the default Agent365 service endpoint
  • Introduces A365_OBSERVABILITY_SCOPES_OVERRIDE environment variable to override the default authentication scopes
  • Adds comprehensive test coverage for both override mechanisms

Reviewed changes

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

Show a summary per file
File Description
packages/agents-a365-runtime/src/environment-utils.ts Implements scope override logic in getObservabilityAuthenticationScope() to read from A365_OBSERVABILITY_SCOPES_OVERRIDE and split on whitespace
packages/agents-a365-observability/src/tracing/util.ts Implements domain override logic in resolveAgent365Endpoint() to read from A365_OBSERVABILITY_DOMAIN_OVERRIDE with trailing slash normalization
tests/runtime/environment-utils.test.ts Adds tests for scope override scenarios including single/multiple scopes, empty values, and whitespace-only inputs
tests/observability/core/agent365-exporter.test.ts Adds parameterized tests for domain override scenarios and cleanup of new environment variable in teardown
tests-agent/basic-agent-sdk-sample/.env.example Documents the two new environment variables with usage comments

Comment thread packages/agents-a365-runtime/src/environment-utils.ts Outdated
Comment thread tests/observability/core/agent365-exporter.test.ts
@fpfp100
PengF (fpfp100) enabled auto-merge (squash) January 7, 2026 17:46
Copilot AI review requested due to automatic review settings January 7, 2026 17:46
@fpfp100
PengF (fpfp100) merged commit d2baa91 into main Jan 7, 2026
11 checks passed
@fpfp100
PengF (fpfp100) deleted the users/pefan/overwrite branch January 7, 2026 17:49

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread tests/runtime/environment-utils.test.ts
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