[JS]Removes usage of non-prod regions in observability. - #65
Merged
Conversation
Nikhil Navakiran (nikhilNava)
requested changes
Nov 14, 2025
Nikhil Navakiran (nikhilNava)
left a comment
Contributor
There was a problem hiding this comment.
lets keep the cluster category. And default the envutils and the
PowerPlatformApiDiscovery to hoor the cluster category and return prod endpoint for dev,test and preprod urls
Contributor
Author
updated. |
Nikhil Navakiran (nikhilNava)
marked this pull request as ready for review
November 15, 2025 01:05
Nikhil Navakiran (nikhilNava)
requested a review
from a team
as a code owner
November 15, 2025 01:05
Nikhil Navakiran (nikhilNava)
approved these changes
Nov 15, 2025
Copilot started reviewing on behalf of
Nikhil Navakiran (nikhilNava)
November 15, 2025 01:05
View session
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes usage of non-production regions in observability by consolidating dev, test, and preprod environments to use the production domain (api.powerplatform.com) instead of their previously dedicated subdomains.
- Removes non-production observability scopes (TEST and PREPROD)
- Updates API host name suffixes for dev/test/preprod to use production domain
- Simplifies
getObservabilityAuthenticationScope()to always return production scope - Updates all related test expectations to reflect the new domain mapping
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/agents-a365-runtime/src/environment-utils.ts | Removed TEST and PREPROD observability scopes and simplified authentication scope function to always return production |
| packages/agents-a365-runtime/src/power-platform-api-discovery.ts | Updated dev, test, and preprod cluster categories to use production API domain instead of environment-specific subdomains |
| packages/agents-a365-observability/src/tracing/exporter/Agent365Exporter.ts | Updated comment to clarify endpoint resolution defaults to production |
| tests/common/power-platform-api-discovery.test.ts | Updated test expectations for dev, test, and preprod to expect production domain across all API discovery methods |
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.
Removes usage of non-prod regions in observability. The Basic export sample has passed with the changes.