-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add request id header for rpc requests #2625
Add request id header for rpc requests #2625
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
6bb8ded
to
8741c6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Looks very good!
8741c6d
to
cfbec7a
Compare
Hi, I fixed the code formatting. Now the lint workflow should be working OK. |
Yeah, unfortunately these tests always fail for external contributions. |
Description
Add a request id header for the RPC requests.
Changes
This PR adds the following request HTTP headers on RPC requests:
X-RPC-Request-Id
- The unique ID of the RPC request.X-Request-Id
- The top level request id passed as a request header for the RPC request generated.How to test
I couldn't find a suitable way to test this. Maybe, it would be useful to create tests for the RPC request execution and assert that those headers are been sending.
Related Issues
Fixes #2519