ShouldPass needs to know the tags being used
This commit is contained in:
parent
7e1d1c19e6
commit
cd5c85a245
|
@ -32,7 +32,7 @@ func (bp *BatchPoints) Add(measurement string, val interface{}, tags map[string]
|
||||||
measurement = bp.Prefix + measurement
|
measurement = bp.Prefix + measurement
|
||||||
|
|
||||||
if bp.Config != nil {
|
if bp.Config != nil {
|
||||||
if !bp.Config.ShouldPass(measurement) {
|
if !bp.Config.ShouldPass(measurement, tags) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ func (bp *BatchPoints) AddValuesWithTime(
|
||||||
measurement = bp.Prefix + measurement
|
measurement = bp.Prefix + measurement
|
||||||
|
|
||||||
if bp.Config != nil {
|
if bp.Config != nil {
|
||||||
if !bp.Config.ShouldPass(measurement) {
|
if !bp.Config.ShouldPass(measurement, tags) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue