Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Update the gRPC stats based on the new spec.#138

Merged
isturdy merged 1 commit intocensus-instrumentation:masterfrom
isturdy:grpc-spec
Apr 4, 2018
Merged

Update the gRPC stats based on the new spec.#138
isturdy merged 1 commit intocensus-instrumentation:masterfrom
isturdy:grpc-spec

Conversation

@isturdy
Copy link
Copy Markdown
Contributor

@isturdy isturdy commented Mar 30, 2018

@isturdy isturdy requested review from g-easy and semistrict March 30, 2018 22:13
static const auto measure = stats::MeasureDouble::Register(
kRpcClientRoundtripLatencyMeasureName,
"Time between first byte of request sent to last byte of response "
"received, or terminal error.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only description ending in a full stop. Suggest remove it for consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

{RpcServerResponseCount(), recv_message_count_}},
{{MethodTagKey(), qualified_method_},
{StatusTagKey(), StatusCodeToString(final_info->final_status)}});
{{RpcServerSentBytesPerRpc(), static_cast<double>(request_size)},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the server's point of view, isn't request size = recvd bytes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point--switched the variable names.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants