mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Collect proxy backend metrics
The metrics are collected in a new handler (BackendMetricsHandler), which gets outbound FullHttpRequest and inbound FullHttpResponse. All metrics collected here are backend metrics, i. e. metrics about connection between the proxy and GAE. They also corresponds to the metrics that we are correctly collection from the [] proxy, minus a few that are related to quota management, which are yet to be implemented. This CL also removed some unnecessary steps to write the frontend protocol name and client hash certificate into backend channel attributes. Instead, BackendMetricsHandler will read these information from the frontend channel attributes directly. This is because backend channel is established after frontend channel, and reading frontend channel attributes from backend handlers always works. On the other hand, there is no easy way to guarantee that the backend channel attributes are writable from frontend handlers, because the channel itself may not have been fully established. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=174513334
This commit is contained in:
parent
5b8ee87ecc
commit
a6f0ab1429
1 changed files with 4 additions and 4 deletions
|
@ -105,10 +105,10 @@ public final class DistributionMetricSubject
|
|||
/**
|
||||
* Asserts that the distribution for the given label can be constructed from the given data set.
|
||||
*
|
||||
* <p>Note that this only tests that the distribution has the same binned histogram as it would if
|
||||
* it had recorded the specified data points. It could have in fact collected different data
|
||||
* points that resulted in the same histogram, but that information is lost to us and cannot be
|
||||
* tested.
|
||||
* <p>Note that this only tests that the distribution has the same binned histogram, along with
|
||||
* the same mean, and sum of squared deviation as it would if it had recorded the specified data
|
||||
* points. It could have in fact collected different data points that resulted in the same
|
||||
* distribution, but that information is lost to us and cannot be tested.
|
||||
*/
|
||||
public And<DistributionMetricSubject> hasDataSetForLabels(
|
||||
ImmutableSet<? extends Number> dataSet, String... labels) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue