feat: add retry attempt headers to every request - #156
Open
big-omega wants to merge 1 commit into
Open
Conversation
big-omega
force-pushed
the
feat/sdk-retry-attempt-headers
branch
from
July 8, 2026 02:37
1267647 to
36c3278
Compare
Lets a server tell a retry attempt apart from a request's initial attempt. - Request now carries an InvocationID generated once per logical call and kept across all of its retry attempts - AddRetryInfoHeaderHandler sets X-Sdk-Invocation-Id (stable across retries) and X-Sdk-Request: attempt=N; max=M (updated on every attempt) on Handlers.Sign, which re-runs on every retry - Registered by default for all services via defaults.Handlers() - Both headers are set before signing runs, so they end up covered by the request's signature (verified against vefaas.CreateSandboxRequest)
big-omega
force-pushed
the
feat/sdk-retry-attempt-headers
branch
from
July 8, 2026 02:47
36c3278 to
dcdbe38
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two headers to every outgoing request so a server can tell a retry attempt apart from a request's initial attempt:
X-Sdk-Invocation-Id: generated once per logical request, stays the same across all of its retry attemptsX-Sdk-Request:attempt=N; max=M, updated on every attemptThe handler is registered by default in
defaults.Handlers(), so it applies to every service built on this SDK without any per-service change.