Skip to content

Commit

Permalink
api: Give instruments a toString() including their name
Browse files Browse the repository at this point in the history
This makes it much easier when testing to understand what the
values/arguments are at various parts of the code.
  • Loading branch information
ejona86 authored Jul 25, 2024
1 parent eb4cdf7 commit b108ed3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/src/main/java/io/grpc/PartialMetricInstrument.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,9 @@ public List<String> getOptionalLabelKeys() {
public boolean isEnableByDefault() {
return enableByDefault;
}

@Override
public String toString() {
return getClass().getName() + "(" + getName() + ")";
}
}

0 comments on commit b108ed3

Please sign in to comment.