mirror of https://github.com/grpc/grpc-java.git
api: Give instruments a toString() including their name
This makes it much easier when testing to understand what the values/arguments are at various parts of the code.
This commit is contained in:
parent
eb4cdf7959
commit
b108ed3ddf
|
|
@ -89,4 +89,9 @@ abstract class PartialMetricInstrument implements MetricInstrument {
|
|||
public boolean isEnableByDefault() {
|
||||
return enableByDefault;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getName() + "(" + getName() + ")";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue