Agent framework extension update for input and output attributes#154
Merged
nikhilNava merged 2 commits intomainfrom Feb 3, 2026
Merged
Agent framework extension update for input and output attributes#154nikhilNava merged 2 commits intomainfrom
nikhilNava merged 2 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Agent Framework observability extension to better normalize GenAI span attributes—especially input/output message content and tool call fields—by adding an on-end span enricher.
Changes:
- Added message-parsing utilities to extract text content from Agent Framework-style
messagesJSON. - Introduced an Agent Framework span enricher that (a) extracts input/output message content and (b) maps tool call arguments/results to standard keys.
- Updated the Agent Framework instrumentor to register/unregister the span enricher during instrument/uninstrument, and updated the extension public API export.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.../agentframework/utils.py |
Adds JSON message parsing helpers for extracting text-only content. |
.../agentframework/span_enricher.py |
Adds an on-end enricher to normalize message and tool-call attributes before export. |
.../agentframework/trace_instrumentor.py |
Registers/unregisters the span enricher and updates instrumentation dependency requirement. |
.../agentframework/span_processor.py |
Minor import/constant ordering cleanup. |
.../agentframework/__init__.py |
Exposes AgentFrameworkInstrumentor as part of the extension’s public API. |
...nsions-agentframework/microsoft_agents_a365/observability/extensions/agentframework/utils.py
Show resolved
Hide resolved
...gentframework/microsoft_agents_a365/observability/extensions/agentframework/span_enricher.py
Show resolved
Hide resolved
...ramework/microsoft_agents_a365/observability/extensions/agentframework/trace_instrumentor.py
Show resolved
Hide resolved
...gentframework/microsoft_agents_a365/observability/extensions/agentframework/span_enricher.py
Show resolved
Hide resolved
juliomenendez
approved these changes
Feb 3, 2026
threddy
approved these changes
Feb 3, 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
Update the agent framework extension to support all attributes
Solution