Skip to content

Commit

Permalink
Fix filterprocessor OC telemetry name, aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroPower committed Nov 19, 2023
1 parent ceb5772 commit 1723cc4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions processor/filterprocessor/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"go.opencensus.io/stats/view"
"go.opencensus.io/tag"
"go.opentelemetry.io/collector/processor"
"go.opentelemetry.io/collector/processor/processorhelper"
"go.opentelemetry.io/otel/attribute"

"github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor/internal/metadata"
Expand Down Expand Up @@ -41,24 +42,24 @@ func metricViews() []*view.View {

return []*view.View{
{
Name: statMetricsFiltered.Name(),
Name: processorhelper.BuildCustomMetricName(typeStr, statMetricsFiltered.Name()),
Measure: statMetricsFiltered,
Description: statMetricsFiltered.Description(),
Aggregation: view.Count(),
Aggregation: view.Sum(),
TagKeys: processorTagKeys,
},
{
Name: statLogsFiltered.Name(),
Name: processorhelper.BuildCustomMetricName(typeStr, statLogsFiltered.Name()),
Measure: statLogsFiltered,
Description: statLogsFiltered.Description(),
Aggregation: view.Count(),
Aggregation: view.Sum(),
TagKeys: processorTagKeys,
},
{
Name: statSpansFiltered.Name(),
Name: processorhelper.BuildCustomMetricName(typeStr, statSpansFiltered.Name()),
Measure: statSpansFiltered,
Description: statSpansFiltered.Description(),
Aggregation: view.Count(),
Aggregation: view.Sum(),
TagKeys: processorTagKeys,
},
}
Expand Down

0 comments on commit 1723cc4

Please sign in to comment.