ShouldPass needs to know the tags being used

This commit is contained in:
Simon Fraser 2015-08-10 20:40:56 +01:00 committed by Cameron Sparr
parent 7e1d1c19e6
commit cd5c85a245
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}