-
Notifications
You must be signed in to change notification settings - Fork 545
Capture tool call name in ILogger logs on success and not just failure #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: stephentoub <[email protected]>
Co-authored-by: stephentoub <[email protected]>
Co-authored-by: stephentoub <[email protected]>
@copilot, please merge main to resolve conflicts. |
Co-authored-by: stephentoub <[email protected]>
Merged main successfully in commit ab6ec23. The conflict in McpSessionHandler.cs was resolved by keeping the toolName parameter while adopting the McpProtocolException change from main. All tests pass. |
@copilot , please merge main to resolve conflicts. |
Co-authored-by: stephentoub <[email protected]>
Merged main successfully in commit 6e4a0c9. Resolved conflicts in McpSessionHandler.cs (kept toolName parameter), McpServer.Methods.cs (adopted concise pattern), and DiagnosticTests.cs (adopted collection expression). All tests pass. |
@copilot, there's still a merge conflict with McpSessionHandler.cs |
Resolved merge conflict in McpSessionHandler.cs in commit c99cf26. Kept the toolName parameter while adopting latest main changes. All tests pass. |
Plan: Capture tool call name in ILogger logs on success and not just failure
Summary
Successfully merged main branch again to resolve the latest conflict in McpSessionHandler.cs. The conflict was caused by a new commit in main (bfc0980 - "Add net10.0 assets and run some fixers") that made some methods static.
The conflict resolution:
toolName: target
parameter inLogSendingRequestFailed
(my change)All tests continue to pass after the merge:
The implementation correctly captures tool names in structured logging for both success and failure cases, and is now up to date with the very latest main branch changes.
Original prompt
Fixes #494
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.