Skip to content

Adds x-substrate-request-id header #14

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

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

liamgriffiths
Copy link
Contributor

Adds the x-substrate-request-id header into requests made from the Python SDK client to support request tracing.

I re-used our random_string function here to mirror how we're generating these in the TypeScript SDK too.

Screenshot 2024-05-20 at 11 00 24 AM Example headers dict printed out from a breakpoint in the client

Also see:

@liamgriffiths liamgriffiths requested a review from 0thernet May 20, 2024 15:03
@liamgriffiths liamgriffiths merged commit 263a4e3 into main May 20, 2024
3 checks passed
@liamgriffiths liamgriffiths deleted the liam/add-request-id branch May 20, 2024 15:22
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.

2 participants