azure.ai.agents - Support debug logging via --debug or AZD_EXT_DEBUG env var#6290
Conversation
weikanglim
left a comment
There was a problem hiding this comment.
Overall looks good. Leaving some comments based on observations.
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
This PR improves debug logging in the
azure.ai.agentsextension when deploying an agent. When theAZD_EXT_DEBUGenv var is set to a truthy value or the--debugflag is passed toazd up/azd deploy, the extension logs all agent service HTTP requests and responses toazd-ai-agents-YYYY-mm-dd.log.Changes
AZD Core
--debugflag to extensions when azd's debug mode is enabled--debugas a command-line argument when started via thelistencommandAgents Extension
IncludeBodyset totrueto log HTTP requests and responsesAPPLICATIONINSIGHTS_CONNECTION_STRING)Debug Log Format