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

Add user-agent header to Solana rust client requests #26262

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Add user-agent header to Solana rust client requests #26262

merged 1 commit into from
Jun 27, 2022

Conversation

steveluscher
Copy link
Contributor

@steveluscher steveluscher commented Jun 27, 2022

Problem

RPC providers collect metrics today, but have no way of filtering those metrics by a particular version of the client. This would be useful in identifying regressions (eg. a version of the client that's particularly badly behaved) or improvements (eg. a version of the client that aims to reduce load on RPCs, like #26236).

Summary of Changes

  • Added a user-agent HTTP header to each request.

Test plan

cd cli && cargo run block 125791054 

Attached a proxy and observed the header making it out.

image

@steveluscher steveluscher added the rust Pull requests that update Rust code label Jun 27, 2022
@steveluscher
Copy link
Contributor Author

This PR is meant to accompany #26236, so that RPC providers can measure if there's a drop in egress with the new version.

mvines
mvines previously approved these changes Jun 27, 2022
client/src/http_sender.rs Outdated Show resolved Hide resolved
@mvines mvines added the v1.10 label Jun 27, 2022
@mergify mergify bot dismissed mvines’s stale review June 27, 2022 20:03

Pull request has been modified.

@steveluscher steveluscher added the automerge Merge this Pull Request automatically once CI passes label Jun 27, 2022
@mergify mergify bot merged commit 558dd53 into solana-labs:master Jun 27, 2022
@steveluscher steveluscher deleted the version-header-for-rust-client branch June 27, 2022 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes enhancement New feature or request rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants