Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spanner): implement generation and propagation of "x-goog-spanner-request-id" Header #11048

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 5, 2024

  1. spanner: implement generation and propagation of "x-goog-spanner-requ…

    …est-id" Header
    
    This change adds sending over the "x-goog-spanner-request-id" header
    for every unary and streaming call, in the form:
    
    	<processId>.<clientId>.<requestCountForClient>.<channelId>.<rpcCountForRequest>
    
    where:
    * processId is a randomly generated uint32 singleton for the lifetime of a process
    * clientId is the monotonically increasing id/number of gRPC Spanner clients created
    * requestCountForClient is the monotonically increasing number of requests made by the client
    * channelId currently at 1 is the Id of the client for Go
    * rpcCountForRequest is the number of RPCs/retries within a specific request
    
    This header is to be sent on both unary and streaming calls and it'll
    help debug latencies for customers. After this change, the next phase shall
    be providing a mechanism for customers to consume the requestID and log it
    along with the documentation for how to accomplish that.
    
    Updates googleapis#11073
    odeke-em committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    18cd8d4 View commit details
    Browse the repository at this point in the history