Skip to content

Add request logging to ConnectorClient and UserTokenClient#473

Merged
rido-min merged 5 commits intomainfrom
feat/rido-add-request-logs
Jul 21, 2025
Merged

Add request logging to ConnectorClient and UserTokenClient#473
rido-min merged 5 commits intomainfrom
feat/rido-add-request-logs

Conversation

@rido-min
Copy link
Copy Markdown
Member

This pull request introduces enhanced logging for HTTP requests and responses in the ConnectorClient and UserTokenClient classes by adding request and response interceptors. These changes improve debugging and traceability by logging detailed information about requests and responses, while ensuring sensitive data (e.g., authorization headers) is excluded.

Logging Enhancements:

Copilot AI review requested due to automatic review settings July 19, 2025 01:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive HTTP request and response logging capabilities to the ConnectorClient and UserTokenClient classes to improve debugging and traceability. The implementation includes proper handling of sensitive data by excluding authorization headers from logs.

  • Added request interceptors to both clients for logging HTTP request details
  • Enhanced response logging in UserTokenClient with headers and improved error handling
  • Implemented security-conscious logging by filtering out authorization headers

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/agents-hosting/src/connector-client/connectorClient.ts Added request interceptor for logging HTTP requests with authorization header filtering
packages/agents-hosting/src/oauth/userTokenClient.ts Added request interceptor, enhanced response logging with headers, and improved error handling with consistent logging

Comment thread packages/agents-hosting/src/oauth/userTokenClient.ts Outdated
Comment thread packages/agents-hosting/src/oauth/userTokenClient.ts Outdated
Comment thread packages/agents-hosting/src/oauth/userTokenClient.ts Outdated
@rido-min rido-min enabled auto-merge (squash) July 21, 2025 17:28
@rido-min rido-min merged commit fba381d into main Jul 21, 2025
7 checks passed
@rido-min rido-min deleted the feat/rido-add-request-logs branch July 21, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants