Skip to content

Commit

Permalink
remove commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikS-crest authored Dec 16, 2024
1 parent 11aeec3 commit 07bc32c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion receiver/mongodbreceiver/metrics.go
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 07bc32c

Please sign in to comment.