Skip to content

Commit

Permalink
feat(inputs): change internal name
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsStegman committed Sep 20, 2024
1 parent b080e56 commit 589c177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/running_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (r *RunningOutput) AddMetric(metric telegraf.Metric) {
return
}

r.addMetric(metric.Copy())
r._addMetric(metric.Copy())
}

// AddMetricNoCopy adds a metric to the output.
Expand All @@ -231,10 +231,10 @@ func (r *RunningOutput) AddMetricNoCopy(metric telegraf.Metric) {
return
}

r.addMetric(metric)
r._addMetric(metric)
}

func (r *RunningOutput) addMetric(metric telegraf.Metric) {
func (r *RunningOutput) _addMetric(metric telegraf.Metric) {
r.Config.Filter.Modify(metric)
if len(metric.FieldList()) == 0 {
r.metricFiltered(metric)
Expand Down

0 comments on commit 589c177

Please sign in to comment.