diff --git a/receiver/mongodbreceiver/metrics.go b/receiver/mongodbreceiver/metrics.go index 53687d113c43..56fe04437ec8 100644 --- a/receiver/mongodbreceiver/metrics.go +++ b/receiver/mongodbreceiver/metrics.go @@ -157,7 +157,6 @@ func (s *mongodbScraper) recordConnections(now pcommon.Timestamp, doc bson.M, db func (s *mongodbScraper) recordFlowControlLagTime(now pcommon.Timestamp, doc bson.M, dbName string, errs *scrapererror.ScrapeErrors) { metricPath := []string{"flowControl", "isLaggedTimeMicros"} metricName := "mongodb.flowcontrol.lag.time" - // metricAttributes := fmt.Sprintf("%s", dbName) val, err := collectMetric(doc, metricPath) if err != nil { errs.AddPartial(1, fmt.Errorf(collectMetricWithAttributes, metricName, dbName, err))