Skip to content

Commit

Permalink
ShouldPass needs to know the tags being used
Browse files Browse the repository at this point in the history
  • Loading branch information
srfraser authored and sparrc committed Aug 11, 2015
1 parent 7e1d1c1 commit cd5c85a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit cd5c85a

Please sign in to comment.