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

[internal] grpc_util: add layer to capture network-level timing data (Cherry-pick of #15978) #15999

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Jun 29, 2022

Our REAPI client uses concurrency_limit to ensure only a certain maximum number of client calls run concurrently. This causes any timing metrics computed outside of that concurrency limit to include the queuing time in addition to the actual network RPC time.

This PR defines a layer below the concurrency limit that will capture just the network RPC time. Timings are captured based on the URI path which maps to a specific observation metric. Units are microseconds.

…antsbuild#15978)

Our REAPI client uses `concurrency_limit` to ensure only a certain maximum number of client calls run concurrently. This causes any timing metrics computed outside of that concurrency limit to include the queuing time in addition to the actual network RPC time.

This PR defines a layer below the concurrency limit that will capture just the network RPC time. Timings are captured based on the URI path which maps to a specific observation metric. Units are microseconds.
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@tdyas tdyas added the category:internal CI, fixes for not-yet-released features, etc. label Jun 29, 2022
@tdyas tdyas merged commit d28041a into pantsbuild:2.13.x Jun 29, 2022
@tdyas tdyas deleted the cp_reapi_network_timing branch June 29, 2022 17:22
@stuhood stuhood mentioned this pull request Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants