add label to the metrics

Signed-off-by: Honglin Feng <tifayuki@gmail.com>
This commit is contained in:
Honglin Feng 2018-10-11 21:39:02 +08:00
parent 8b70616846
commit 76da6290b0
4 changed files with 17 additions and 15 deletions

View file

@ -66,7 +66,7 @@ func TestBroadcaster(t *testing.T) {
func TestEventQueue(t *testing.T) {
const nevents = 1000
var ts testSink
metrics := newSafeMetrics()
metrics := newSafeMetrics("")
eq := newEventQueue(
// delayed sync simulates destination slower than channel comms
&delayedSink{