ShouldPass needs to know the tags being used
This commit is contained in:
committed by
Cameron Sparr
parent
7e1d1c19e6
commit
cd5c85a245
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user