can't set labelNames when getCounterMetric
yakiang opened this issue · comments
yakiang commented
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: []
Tieu Philippe KHIM commented
Fix will be merge on 0.2.6 soon