Remove redundant null check in conversation ID extraction#64
Merged
nikhilNava merged 2 commits intonikhilc/addExporterOptionsfrom Nov 19, 2025
Merged
Remove redundant null check in conversation ID extraction#64nikhilNava merged 2 commits intonikhilc/addExporterOptionsfrom
nikhilNava merged 2 commits intonikhilc/addExporterOptionsfrom
Conversation
Co-authored-by: nikhilNava <[email protected]>
nikhilNava
approved these changes
Nov 19, 2025
Copilot
AI
changed the title
[WIP] Update exporter options and functionality improvements
Remove redundant null check in conversation ID extraction
Nov 19, 2025
nikhilNava
added a commit
that referenced
this pull request
Nov 20, 2025
* updates to baggage and scope * add tests for new functionality * fix tests * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/invoke_agent_scope.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters/agent365_exporter_options.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/exporters/agent365_exporter_options.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py Co-authored-by: Copilot <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py Co-authored-by: Copilot <[email protected]> * Remove redundant null check in conversation ID extraction (#64) * Initial plan * Remove redundant condition in _iter_conversation_pairs Co-authored-by: nikhilNava <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: nikhilNava <[email protected]> * Fix copyright header in utils.py to use standard Microsoft format (#65) * Initial plan * Fix copyright header in utils.py to use standard Microsoft format Co-authored-by: nikhilNava <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: nikhilNava <[email protected]> * Update libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/middleware/baggage_builder.py Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Nikhil Chitlur Navakiran (from Dev Box) <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: nikhilNava <[email protected]>
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.
The
_iter_conversation_pairsfunction had a redundant conditional check that served no purpose. The variableconversation_idwas initialized toNoneand immediately checked withif not conversation_id:, which would always evaluate toTrue.Changes
conversation_id = Noneinitialization andif not conversation_id:checkBefore:
After:
The logic appears to be leftover from previous refactoring where entity-based conversation ID extraction was removed.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.