Skip to content

Commit

Permalink
remove unused variable and code for setting metric type to it
Browse files Browse the repository at this point in the history
  • Loading branch information
movence committed Mar 1, 2024
1 parent 6a2de95 commit cc3bf6e
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ func (dc *decorateConsumer) ConsumeMetrics(ctx context.Context, md pmetric.Metri
converted := ci.ConvertToFieldsAndTags(m, dc.logger)
var rcis []*stores.RawContainerInsightsMetric
for _, pair := range converted {
rci := stores.NewRawContainerInsightsMetricWithData(ci.TypeGpuContainer, pair.Fields, pair.Tags, dc.logger)
if !rci.HasTag(ci.MetricType) {
// force type to be Container to decorate with container level labels
rci.AddTag(ci.MetricType, ci.TypeGpuContainer)
}
rcis = append(rcis, stores.NewRawContainerInsightsMetricWithData(ci.TypeGpuContainer, pair.Fields, pair.Tags, dc.logger))
}

Expand Down

0 comments on commit cc3bf6e

Please sign in to comment.