Skip to content

Conversation

@fpfp100
Copy link
Contributor

@fpfp100 fpfp100 commented Feb 11, 2026

Map agentBlueprintId and agentUPN in ScopeUtils derive helpers

Copilot AI review requested due to automatic review settings February 11, 2026 21:45
@fpfp100 fpfp100 requested a review from a team as a code owner February 11, 2026 21:45
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

Updates the hosting-layer ScopeUtils helpers so agent identity fields from TurnContext (blueprint ID and UPN) are propagated into AgentDetails, ensuring those attributes can be emitted on spans via existing observability scope logic.

Changes:

  • Map recipient.agenticAppBlueprintIdagentBlueprintId and recipient.agenticUserIdagentUPN in deriveAgentDetails.
  • Map from.agenticUserIdagentUPN in deriveCallerAgent.
  • Extend unit tests to validate the new mappings and resulting OpenTelemetry tags.

Reviewed changes

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

File Description
packages/agents-a365-observability-hosting/src/utils/ScopeUtils.ts Adds blueprint ID + UPN mappings into derived AgentDetails for recipient and caller agent.
tests/observability/extension/hosting/scope-utils.test.ts Updates test fixtures and expectations to cover the new agent blueprint ID + UPN mappings and emitted tags.

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.

4 participants