Skip to content

Conversation

konstin
Copy link
Member

@konstin konstin commented Aug 27, 2025

Report retry count on Ok results that underwent retries through a RetryCount response extension, so that users can include the retry count in error messages.

We discovered in uv that we were not reporting retries for status code errors. This change does for Ok results what TrueLayer#159 did for Err results, enabling consistently showing retry messages in error traces (astral-sh/uv#13897).

Report retry count on `Ok` results that underwent retries through a `RetryCount` response extension, so that users can include the retry count in error messages.

We discovered in uv that we were not reporting retries for status code errors. This change does for `Ok` results what TrueLayer#159 did for `Err` results.
@konstin konstin force-pushed the konsti/report-retry-counts branch from 62eed11 to 7a36fcc Compare August 27, 2025 14:53
@konstin konstin merged commit cc778f7 into main Aug 28, 2025
11 of 12 checks passed
konstin added a commit that referenced this pull request Aug 28, 2025
Report retry count on `Ok` results that underwent retries through a `RetryCount` response extension, so that users can include the retry count in error messages.

We discovered in uv that we were not reporting retries for status code errors. This change does for `Ok` results what TrueLayer#159 did for `Err` results.
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.

1 participant