Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

fix: remove sync response logs in AuthorizedSession#1761

Merged
sai-sunder-s merged 1 commit intomainfrom
remove-response-logs-for-sync-apis
May 21, 2025
Merged

fix: remove sync response logs in AuthorizedSession#1761
sai-sunder-s merged 1 commit intomainfrom
remove-response-logs-for-sync-apis

Conversation

@ohmayr
Copy link
Copy Markdown
Contributor

@ohmayr ohmayr commented May 9, 2025

BEGIN_COMMIT_OVERRIDE
fix: remove sync response logs in AuthorizedSession
END_COMMIT_OVERRIDE

Currently, response logs require decoding response via response.json() before the actual response is consumed. This results in issues for a streaming API call where the stream is empty due to it being consumed already for logs.

Removing the response log from AuthorizedSession resolves this issue. We'll still be logging request and response (including the response body) for credentials to satisfy the requirement for client logging.

For logging API responses, we need to log the response body within the gapics.

@ohmayr ohmayr requested a review from a team May 9, 2025 18:39
@ohmayr ohmayr requested a review from a team as a code owner May 9, 2025 18:39
@ohmayr ohmayr force-pushed the remove-response-logs-for-sync-apis branch from 7842440 to 29823f8 Compare May 9, 2025 18:41
@sai-sunder-s sai-sunder-s force-pushed the remove-response-logs-for-sync-apis branch from 29823f8 to 5203dfd Compare May 20, 2025 23:43
@sai-sunder-s sai-sunder-s enabled auto-merge (squash) May 20, 2025 23:43
@sai-sunder-s sai-sunder-s merged commit 97ed1c8 into main May 21, 2025
16 checks passed
@sai-sunder-s sai-sunder-s deleted the remove-response-logs-for-sync-apis branch May 21, 2025 00:08
@sai-sunder-s sai-sunder-s changed the title chore: remove sync response logs in AuthorizedSession fix: remove sync response logs in AuthorizedSession May 21, 2025
@ohmayr ohmayr added the release-please:force-run To run release-please label May 21, 2025
@release-please release-please bot removed the release-please:force-run To run release-please label May 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants