marcelo
10/08/2018, 10:50 PMval counterWithTwoTags = metric.counterTwoTags("my.counter.name", "key1", "key2")
try{
someHttpCall()
counterWithTwoTags("value1", "value2")
catch(Exception e) {
counterWithTwoTags("errorValue1", "errorValue2")
}
I want to make sure that the name
for the counter remains immutable, but the the value is not. I was thinking that companion objects was the right way, but this seems more like for static methods.Jonathan Walsh
10/08/2018, 11:01 PMval
while value is a var
?marcelo
10/09/2018, 1:21 AMjava
the parameter as an object - since it's a key/pair. Maybe a Pair
?