getCounterMetric only accept name as params, and inside it calls findOrCreateCounter with the name, but findOrCreateCounter can accept labelNames as well.
When I call counter.inc({ uri: '/abc' }, 1), it throws error:
Added label "uri" is not included in initial labelset: []
getCounterMetric
only acceptname
as params, and inside it callsfindOrCreateCounter
with thename
, butfindOrCreateCounter
can acceptlabelNames
as well. When I callcounter.inc({ uri: '/abc' }, 1)
, it throws error:Added label "uri" is not included in initial labelset: []