From 07bc32cf799567550fdfd4dd1495ba54e2a2de42 Mon Sep 17 00:00:00 2001 From: Rutvik Shiyani <88027613+RutvikS-crest@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:51:57 +0530 Subject: [PATCH] remove commented code. --- receiver/mongodbreceiver/metrics.go | 1 - 1 file changed, 1 deletion(-) 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))