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