From 3192d2c983003e7c81b4e02dcd9ceb15b9b811b6 Mon Sep 17 00:00:00 2001 From: Simon Fraser Date: Mon, 10 Aug 2015 20:40:56 +0100 Subject: [PATCH] ShouldPass needs to know the tags being used --- accumulator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accumulator.go b/accumulator.go index b3f7a4511..b756cc16e 100644 --- a/accumulator.go +++ b/accumulator.go @@ -32,7 +32,7 @@ func (bp *BatchPoints) Add(measurement string, val interface{}, tags map[string] measurement = bp.Prefix + measurement if bp.Config != nil { - if !bp.Config.ShouldPass(measurement) { + if !bp.Config.ShouldPass(measurement, tags) { return } } @@ -71,7 +71,7 @@ func (bp *BatchPoints) AddValuesWithTime( measurement = bp.Prefix + measurement if bp.Config != nil { - if !bp.Config.ShouldPass(measurement) { + if !bp.Config.ShouldPass(measurement, tags) { return } }