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

Propagate context to server RPC handlers #2059

Merged
merged 4 commits into from
Sep 19, 2024

Commits on Sep 16, 2024

  1. Propagate context to server RPC handlers

    Motivation:
    
    The interceptors API has a context which, at the moment, only includes
    the name of the RPC. This information is generally useful so should be
    propagated to the server handler too. Information on the context can
    also be extended later to include things like the identity of the remote
    peer, or info about the state of the RPC.
    
    Modifications:
    
    - Rename 'ServerInterceptorContext' to 'ServerContext'
    - Make the transport the source of the context and have that provide it
      to the 'listen' method. Propagate this through the server stack to the
      generated stubs.
    - Update code generator to include the context
    - Update generated code
    - Update services
    
    Results:
    
    RPC handlers have a context provided by a transport
    glbrntt committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    359c6c3 View commit details
    Browse the repository at this point in the history
  2. regen

    glbrntt committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    0e8b637 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. verify context has descriptor

    glbrntt committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    ecb597d View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    4e962ce View commit details
    Browse the repository at this point in the history