Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an agent_version dimension to the observability SDK so agent/version can be attached to spans (and propagated via baggage allowlists) to better support evaluation scenarios.
Changes:
- Introduces
GEN_AI_AGENT_VERSION_KEYandGEN_AI_CALLER_AGENT_VERSION_KEYconstants. - Extends
AgentDetailswith an optionalagent_versionfield and records it on spans. - Adds baggage support/allowlisting for propagating agent version (and caller-agent version for invoke-agent scenarios).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/trace_processor/util.py | Adds agent/caller-agent version keys to the attribute allowlists used by the span processor. |
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/opentelemetry_scope.py | Records gen_ai.agent.version on spans when provided via AgentDetails. |
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py | Adds fluent API to set agent version in baggage. |
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/invoke_agent_scope.py | Records caller-agent version on invoke-agent spans when provided via CallerDetails. |
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/constants.py | Defines the new attribute keys for agent and caller-agent version. |
| libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/agent_details.py | Adds agent_version: Optional[str] to AgentDetails. |
...ents-a365-observability-core/microsoft_agents_a365/observability/core/opentelemetry_scope.py
Show resolved
Hide resolved
...65-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py
Show resolved
Hide resolved
...gents-a365-observability-core/microsoft_agents_a365/observability/core/invoke_agent_scope.py
Show resolved
Hide resolved
juliomenendez
approved these changes
Apr 2, 2026
fpfp100
approved these changes
Apr 2, 2026
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.
Task
Add agent version attribute to support evals