Skip to content

Fix blueprint_id attribute key to microsoft.a365.agent.blueprint.id#47094

Merged
singankit merged 1 commit into
mainfrom
singankit/tracing/fix_attribute_names
May 23, 2026
Merged

Fix blueprint_id attribute key to microsoft.a365.agent.blueprint.id#47094
singankit merged 1 commit into
mainfrom
singankit/tracing/fix_attribute_names

Conversation

@singankit
Copy link
Copy Markdown
Contributor

Update _ATTR_GEN_AI_AGENT_BLUEPRINT_ID from gen_ai.agent.blueprint.id to microsoft.a365.agent.blueprint.id and add corresponding test.

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Update _ATTR_GEN_AI_AGENT_BLUEPRINT_ID from gen_ai.agent.blueprint.id
to microsoft.a365.agent.blueprint.id and add corresponding test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@singankit singankit requested a review from ankitbko as a code owner May 23, 2026 00:33
Copilot AI review requested due to automatic review settings May 23, 2026 00:33
@github-actions github-actions Bot added the Hosted Agents sdk/agentserver/* label May 23, 2026
Copy link
Copy Markdown
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

This pull request corrects the OpenTelemetry attribute key used to emit an agent’s agent_blueprint_id in azure-ai-agentserver-core, and adds a regression test to ensure the correct key is exported on spans.

Changes:

  • Update _ATTR_GEN_AI_AGENT_BLUEPRINT_ID to use microsoft.a365.agent.blueprint.id instead of gen_ai.agent.blueprint.id.
  • Add an end-to-end tracing test verifying agent_blueprint_id is exported under the corrected attribute key.

Reviewed changes

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

File Description
sdk/agentserver/azure-ai-agentserver-core/azure/ai/agentserver/core/_tracing.py Updates the constant used by _FoundryEnrichmentSpanProcessor when stamping agent_blueprint_id onto span attributes.
sdk/agentserver/azure-ai-agentserver-core/tests/test_tracing.py Adds a regression test that asserts the exported span includes microsoft.a365.agent.blueprint.id with the expected value.

@singankit singankit enabled auto-merge (squash) May 23, 2026 02:33
@singankit singankit merged commit acea15a into main May 23, 2026
23 checks passed
@singankit singankit deleted the singankit/tracing/fix_attribute_names branch May 23, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hosted Agents sdk/agentserver/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants