ShouldPass needs to know the tags being used
This commit is contained in:
parent
7a23eb69eb
commit
3192d2c983
|
@ -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