Skip to content

grpc-js: Implement ORCA server-side per-call metrics #2978

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

murgatroid99
Copy link
Member

This implements the server-side per-call metrics part of gRFC A51. This adds the channel option grpc.server_call_metric_recording which enables the feature on the server, and adds the getMetricsRecorder method to the call object that is passed to each method handler. The metrics recorder object has the exact API described in the gRFC.

This feature is the first instance of an xds proto being used in the core library, and they need to be published in the library. I already had those protos available in a submodule in the grpc-js-xds directory, so I added a pre-build script to copy the relevant files into the grpc-js directory.

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