Skip to content

Commit

Permalink
nit: remover print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
naman47vyas committed Jul 15, 2024
1 parent 98a11ea commit 15ba167
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions receiver/mysqlreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"go.opentelemetry.io/collector/receiver/scrapererror"
"go.uber.org/zap"

"github.com/k0kubun/pp"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver/internal/metadata"
)

Expand Down Expand Up @@ -432,8 +431,6 @@ func (m *mySQLScraper) scrapeGlobalStats(now pcommon.Timestamp, errs *scrapererr

func (m *mySQLScraper) scrapeTotalRows(now pcommon.Timestamp, errs *scrapererror.ScrapeErrors) {
nrows, err := m.sqlclient.getTotalRows()
pp.Println(nrows)
pp.Println(err)
if err != nil {
m.logger.Error("Failed to fetch Total Rows", zap.Error(err))
errs.AddPartial(1, err)
Expand Down Expand Up @@ -593,7 +590,6 @@ func (m *mySQLScraper) scrapeStatementEventsStats(now pcommon.Timestamp, errs *s

func (m *mySQLScraper) scrapeTotalErrors(now pcommon.Timestamp, errs *scrapererror.ScrapeErrors) {
totalErrors, err := m.sqlclient.getTotalErrors()
pp.Println("Total errors: ", totalErrors)
if err != nil {
m.logger.Error("Failed to fetch total errors ", zap.Error(err))
errs.AddPartial(1, err)
Expand Down

0 comments on commit 15ba167

Please sign in to comment.